PDA

View Full Version : Determine Primary Group



cbraun
01-09-2002, 12:12 AM
Using WSH to create a logon script, is there a method to dectect the users "Primary" Group Membership in and NT 4.0 Domain.

What I'm trying to accomplish is, since users can be members of multiple groups, I need to be able to map a drive based on their PRIMARY group membership.

For instance, if a user is a member of the following groups... EStuido, Archives, and Presentations, but their primary group is EStudio, they will get a drive mapping O:\EStudio.

Another user that is a member of the same groups EStudio, Archives, and Presentations, but their primary group is Presentations will get a drive mapping to O:\Presentations.

This needs to work for Win 9x, NT4 and 2000 users. Also note that although this is a perfect job for Kixtart, that is not an option in my environment.

Thanks in advance for your assistance,

-Charles