Mapped Network Drive's Based on Group Membership
OK here it goes.
I have my GPO with a logon script that i created. It works because when I login with my administrator account and run the script the drive gets mapped. BUT it does not map when loggin in. I have to actually navigate to the NETLOGON folder and run the script.
I have two users in the same group.
One user #1 has memberships in GG_IT_Management, Domain Admin, Enterprise Admin, and Domain User.
The other user # 2 just has membership in GG_IT_Management.
I am trying to map a drive for members in the GG_IT_Management.
When I login with user # 1, and run the script i get the drive.
When I login with user # 2, and run the script i get nothing.
Now seeing how it works for user # 1, WHY does it not work when he logs in.
The GPOs that i have inplace are ONLY;
Disable Fast Logon (which has the "allways wait for the network at computer startup and logon")
Drive Maps Policy (which has the "allways process across a slow network connection" & "process even if the Group Policy objects have not changed".
Network Drive Mapping (which has my Logon script for the drive mapping).
All of these GPOs are at the highest level in my OU structure, and when looking at Group Policy Management, i can see in the Group Policy Inheritance that ALL the above policy are inherited.
The script is;
On Error Resume Next
Set objSysInfo = CreateObject("ADSystemInfo")
Set objNetwork = CreateObject("WScript.Network")
strUserPath = "LDAP://" & objSysInfo.UserName
Set objUser = GetObject (strUserPath)
For Each strGroup in objUser.MemberOf
strGroupPath = "LDAP://" & strGroup
Set objGroup = GetObject(strGroupPath)
strGroupName = objGroup.CN
Select Case strGroupName
objNetwork.MapNetworkDrive "X:", "\\SRV01\Department"
Not to sure why it works for one user and not the other, and why it does not map the drive at user login?
**This is only the bare minimum that i want to do too..lol I would like to have a "Personal Drive" mapped also that logs the username and create a folder inside the "Personal Drive" that the individual users and save their documents in. And also have a quota.
THIS IS DRIVING me nuts.