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
353 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
Comment Utility
Nevermind I just found out about cmdkey.exe . Does exactly what I need it to do.
0

Featured Post

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Join & Write a Comment

Some time ago I was asked to set up a web portal PC to put at our entrance. When customers arrive, they could see a webpage 'promoting' our company. So I tried to set up a windows 7 PC as a kiosk PC.......... I will spare you all the annoyances I…
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.
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 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

12 Experts available now in Live!

Get 1:1 Help Now