?
Solved

Scriptable alternative to using net use in HKLM\....\run to add credentials to machine on the network to a system

Posted on 2008-10-19
1
Medium Priority
?
358 Views
Last Modified: 2013-12-17
I have a file server to which whenever I try to open a folder, I get a dialog for a user name and password.
I can bypass it if from the command prompt when I run net use . However, I have tried putting net use in the the registry startup, but this does not work due to the fact that this runs before all other network services are started.
I know about keymgr.dll, but this is not a viable solution for me because it forces me to interact via the GUI and I need a scriptable way to do this.
I am able to use advapi32.dll to open the destination with credentials, from a small c# program but unfortunately, they do not persist outside of the program as I had hoped they might.
Any solutions/ideas are welcome.
Note -- I know that a way to get rid of the pw prompt all together is to put the server in guest only mode, but that is not an option for me.

Thanks in advance
0
Comment
Question by:Matt_Du
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
Matt_Du earned 0 total points
ID: 22754137
Nevermind I just found out about cmdkey.exe . Does exactly what I need it to do.
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question