friends 0 Posted December 19, 2004 I have a LAN environment, and there are Win2K and WinXP OSes. Whenever we wanna access Win2K (Restricted User) by typing \\computer-name from WinXP, there will be a windows pop up asking for "Username" and "Password". If we entered the correct Username and Password, then only we can access to the shared folder. Is it possible to define the "Username" and "Password" in the script, so that we don't have to enter Username and Password everytime we access to the computer's shared folder ? If it is possible... mind to show me an example ? Thanks.... Share this post Link to post Share on other sites
Matt @ MPCS 0 Posted December 19, 2004 I have never personally tried this but working through the logic... couldn't you execute a RunAsSet speciying the server of the share as the computer before accessing the share? If that doesn't work you could always do a winwait for the login box and then controlsend the username and passwords. Matt Share this post Link to post Share on other sites
friends 0 Posted December 19, 2004 I have never personally tried this but working through the logic... couldn't you execute a RunAsSet speciying the server of the share as the computer before accessing the share? If that doesn't work you could always do a winwait for the login box and then controlsend the username and passwords.Matt<{POST_SNAPBACK}>I've tried that out... it does not work.I don't want to use the ControlSend method to do it.I want it to "access" directly without the user knowing it. Share this post Link to post Share on other sites
t0ddie 0 Posted December 19, 2004 maybe hide the windows first. they will popup for maybe a split second.... just my 2 cents Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Share this post Link to post Share on other sites
Jon 1,009 Posted December 19, 2004 Just use DriveMapAdd - it supports a username/password. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites
lyledg 0 Posted December 19, 2004 Or, if you wanted to go the DOS route, you could use "NET USE \\computername\sharename /USER:[domainname\]username] password" from a Run command in conjunction with Comspec.. Share this post Link to post Share on other sites