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
356 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
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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

726 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