Hello:
I did go through some of the old postings,couldnt find the solution for my problem
Iam trying to connect two shares on logon for every user.
1. Home 2. Public.
But when user logs in, only Home directory is connected not the public.
Iam not good in scripting. Please let me know what am i missing.
Here is the logon script
************************
Const Staff = "cn=Staff"
Set wshNetwork = CreateObject("WScript.Network")
wshNetwork.MapNetworkDrive "h:", "\\FileServer\Users\" & wshNetwork.UserName
Set ADSysInfo = CreateObject("ADSystemInfo")
Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName)
strGroups = LCase(Join(CurrentUser.MemberOf))
If InStr(strGroups, Staff) Then
wshNetwork.MapNetworkDrive "g:", "\\FileServer\Public\"
ENDIF
**************
Thanks,
I did go through some of the old postings,couldnt find the solution for my problem
Iam trying to connect two shares on logon for every user.
1. Home 2. Public.
But when user logs in, only Home directory is connected not the public.
Iam not good in scripting. Please let me know what am i missing.
Here is the logon script
************************
Const Staff = "cn=Staff"
Set wshNetwork = CreateObject("WScript.Network")
wshNetwork.MapNetworkDrive "h:", "\\FileServer\Users\" & wshNetwork.UserName
Set ADSysInfo = CreateObject("ADSystemInfo")
Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName)
strGroups = LCase(Join(CurrentUser.MemberOf))
If InStr(strGroups, Staff) Then
wshNetwork.MapNetworkDrive "g:", "\\FileServer\Public\"
ENDIF
**************
Thanks,