I want to assign right's and map drives thru my logon script I only have 8 diferrent dept 's so 8 OU's (about 200 desktops)
I made my OU's made my users and put them in groups then
in there OU
I'm very lost , I've read till I'm blue in the face see logon script below I
I need a smiple script to mapp drives and create home folder
I have the following logon script User Paul
Paul is member of IT_Dept and is in IT (OU) .....FOR EXAMPLE)
my logon script............
Option Explicit
Dim objNetwork
Dim strDriveLetter, strRemotePath, strUserName
strDriveLetter = "J:"
strRemotePath = "\\server1\home"
' Purpose of script to create a network object. (objNetwork)
' Then to apply the MapNetworkDrive method. Result J: drive
Set objNetwork = WScript.CreateObject("WScr
ipt.Networ
k")
' Here is where we extract the UserName
strUserName = objNetwork.UserName
objNetwork.MapNetworkDrive
strDriveLetter, strRemotePath & "\" & strUserName
' Extra code just to add a message box
WScript.Echo " Good Afternoon Paul, Launch Explorer, check: "& strDriveLetter
WScript.Quit
' End of MapNetworkDrive Example logon script.
Start Free Trial