moinuddin_sh Posted November 29, 2006 Posted November 29, 2006 I need help creating a Login Script that will do the following: Map the share department driveI written the following login script to share the user drive:Dim oNet, sUser, sGroupSet oNet = CreateObject("Wscript.Network")sUser =oNet.UserNamerem sGroup =oNet.GroupNameoNet.MapNetworkDrive "K:", "\\Server1\" & sUser rem oNet.MapNetworkDrive "L:", "\\Server1\" & sGroup
jpatto Posted November 29, 2006 Posted November 29, 2006 To map a shared drive why not use:NET USE H: \\Server\Sharesave it to a batch file and add it to your user login profile
chilifrei64 Posted November 29, 2006 Posted November 29, 2006 Here is the script I use. It will map printers and network drives based on Active Directory group membership. You dont even need to touch the script itself.. it runs based on the contents of a csv filehttp://lazynetworkadmin.com/content/view/7/6/
moinuddin_sh Posted December 2, 2006 Author Posted December 2, 2006 Thank you very much Mr. chilifrei64It works as I was wanted.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now