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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now