Remapping User Drives
So here is the deal:
Many moons ago, our desktop support mapped network drives by visiting every workstation and mapped the drives manually.
Now, the department head wants to rename the shared folder that the network drive was pointing to.
My question is, instead of revisiting every workstation again, can I use a script specific to an OU to remap the network drive?
My concerns are, will the script 'override' the current network drive mappings? Or will it error out, or what?
Hope that makes sense.
November 28th, 2012 6:46am
Hi
Yes you can use scripts
Your script should look like:
net use /delete X: (Where x: is logical mark)
net use X: \\servername\sharename (optional is $ at the end)
Save script as .bat. If you are using ActiveDirectory you can put this script in c:\windows\sysvol\domain\script and distribute for all users to use this scriptBest regards
Dubravko Marak
MCP
Blog: Windows Server Administration
Please remember to click Mark as Answer on the post that helps you, and to click
Unmark as Answer if a marked post does not actually answer your question. Please
VOTE as HELPFUL if the post helps you. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
November 28th, 2012 7:37am
Hi,
You can easily achieve this through GPP if you are using 2008 and above.
http://blogs.technet.com/b/grouppolicy/archive/2009/02/11/gp-preferences-will-reduce-logon-scripts-mapping-drives.aspx
Or you can use simple login script to disconnect the existing mapped drives and remap the drives.
http://loginscripts.info/network-drives.asp
Regards,
Rafic
If you found this post helpful, please give it a "Helpful" vote.
If it answered your question, remember to mark it as an "Answer".
This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before implementing!
November 28th, 2012 9:31am
Hi,
Agree with above, either gpp or logon script is ok. With GPP you can choose Replace or Update for action.
Just add some links:
Configure a Mapped Drive Item
http://technet.microsoft.com/en-us/library/cc770902(v=WS.10).aspx
Net use
http://technet.microsoft.com/en-us/library/bb490717.aspx
Regards,
Cicely
Free Windows Admin Tool Kit Click here and download it now
November 28th, 2012 10:35pm
One more question.
With the net use /delete batch, can I run this once per user?
Thanks again.
November 30th, 2012 10:14pm
Hi
You can run net use /delete every time. Or you can modify script (comment this lines) after first use
I use this everytime. Script is running on every logon.Best regards
Dubravko Marak
MCP, MVP
Blog: Windows Server Administration
Please remember to click Mark as Answer on the post that helps you, and to click
Unmark as Answer if a marked post does not actually answer your question. Please
VOTE as HELPFUL if the post helps you. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
December 1st, 2012 3:57am