If member of a group then map network drive 
Author Message
 If member of a group then map network drive

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?



Sun, 09 Oct 2005 01:22:41 GMT  
 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?



Sun, 09 Oct 2005 03:16:46 GMT  
 If member of a group then map network drive
Joshua,

I use Kixstart to automate drive mappings in our domain.  I've included a
link to download the app.  Let me know if you would like a copy of the
login script we use in our domain.

http://www.kixtart.org/



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?



Mon, 24 Oct 2005 10:19:34 GMT  
 If member of a group then map network drive
I would like to start using Kixstart on a w2k domain.
would please send me a copy of the login script also tell me what
files needs to be copied where - I read the manual but not sure - just
copy to netlogon share or needs to be installed on the clients also.

Thanks

Quote:

> Joshua,

> I use Kixstart to automate drive mappings in our domain.  I've included a
> link to download the app.  Let me know if you would like a copy of the
> login script we use in our domain.

> http://www.kixtart.org/



> > 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?



Thu, 27 Oct 2005 10:54:29 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Make drive mapping when member of group

2. get drive size from network network mapped drives

3. rename a drive / map network drive

4. members and map drive

5. Enumerate Local Group Members and Identify Domain of Members

6. map drive per global group

7. Mapping Drives based on NT global groups

8. Multiple groups drive letter mapping? (newbie question)

9. Drive mapping according to group membership

10. Mapping drives based on group membership using ADSI with VBS

11. Selective Drive mapping for Nested Groups

12. A logon script that maps drives according to the users group memberships

 

 
Powered by phpBB® Forum Software