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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

792 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