Sully Posted July 10, 2009 Report Share Posted July 10, 2009 Is it possible to map network drives using a specific username and password in a logon script? Due to Domain changes and some other recent issues, we are not able to access folders/files on our network when logging in with our NEW domain account. I have to manually go to each computer and map each drive with the user's OLD domain account. Until we can get this issue resolved, I would like to put a temporary logon script on each user's profile that will map their network drives using their OLD domain account. Is this possible? To try to make it a bit more clear, when I go to a computer, I right click on My Computer, click on Map Network Drive. I select the drive letter and specify the folder. Then I click on "Connect Using A Different User Name". Another window pops up. In that window, I specify the user name as "domain\username" (where domain is the OLD domain) and then put in their password in the password field. So, can this be accomplished in a logon script? If so, how? Thanks! Quote Link to comment Share on other sites More sharing options...
thorne Posted July 10, 2009 Report Share Posted July 10, 2009 net use ? the net use command should work Quote Link to comment Share on other sites More sharing options...
Sully Posted July 10, 2009 Author Report Share Posted July 10, 2009 We are using the net use command. I need the specific context on how to specify the OLD domain user name and password. Quote Link to comment Share on other sites More sharing options...
SRTurbo04 Posted July 10, 2009 Report Share Posted July 10, 2009 .... NERRRRRRRRRRRRRRRRRRRRRRRRRRD lol j.k Quote Link to comment Share on other sites More sharing options...
Sully Posted July 10, 2009 Author Report Share Posted July 10, 2009 Hmmm... It looks like it might be something like this: net use h: \\server\share /user:username password I've got some testing to do. Quote Link to comment Share on other sites More sharing options...
thorne Posted July 10, 2009 Report Share Posted July 10, 2009 Sully that should work. I've done it that way in the past Quote Link to comment Share on other sites More sharing options...
Sully Posted July 10, 2009 Author Report Share Posted July 10, 2009 Now I'm just waiting for someone to get out of the server at corporate so that I can login, create a new login script and test it. Quote Link to comment Share on other sites More sharing options...
Buck531 Posted July 10, 2009 Report Share Posted July 10, 2009 If you need to map a drive to another domain... NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]] [/uSER:[domainname\]username] [/uSER:[dotted domain name\]username] [/uSER:[username@dotted domain name] [/sMARTCARD] [/sAVECRED] [[/DELETE] | [/PERSISTENT:{YES | NO}]] NET USE {devicename | *} [password | *] /HOME NET USE [/PERSISTENT:{YES | NO}] Quote Link to comment Share on other sites More sharing options...
initzero Posted July 10, 2009 Report Share Posted July 10, 2009 Im copied this line from our network script. net use i: \\servername\share /user:username password Quote Link to comment Share on other sites More sharing options...
paktinat Posted July 10, 2009 Report Share Posted July 10, 2009 unless you set all of their old passwords to the same thing, I dont see how this is gonna work. Have you ever created a domain trust? you can have you old domain trust a security group from the new domain, and just need to edit the ACLs on the file server to reflect changes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.