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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now