
If member of a group then map network drive
I answered my own question,
strGroupDN = "cn=restricted group,dc=corporate,dc=libgo"
Set objGroup = GetObject("LDAP://" & strGroupDN)
Set adsSystemInfo = CreateObject("ADSystemInfo")
If objGroup.IsMember("LDAP://" & adsSystemInfo.UserName) Then
WScript.Echo "User " & Split(adsSystemInfo.UserName, ",")(0) & " is a
member of " & objGroup.Name
Else
WScript.Echo "User " & Split(adsSystemInfo.UserName, ",")(0) & " is NOT a
member of " & objGroup.Name
End If
Quote:
> Any scripts for checking if a user is a member of a certain group and if
so
> map a network drive for only that group?
> Any ideas?