Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Hey, Scripting Guy! How Can I Map Drives Based on Membership in an Active Directory Group When the User Belongs to Multiple Groups?

(image) Hey, Scripting Guy! In yesterday’s column you showed a sample script that mapped a drive based on membership in an Active Directory group; along the way, you brought up the possibility of a user belonging to more than one group. “Suppose you have two groups,” you said. “What happens if a user is a member of both groups?” ...

Hey, Scripting Guy! How Can I Map Drives Based on Membership in an Active Directory Group?

(image) Hey, Scripting Guy! I need to map a drive based on a user’s membership in a particular Active Directory group. However, I have a twist as well: I need to map a different drive depending on whether or not the user is a manager. In other words, I need to map a drive based on both group membership and job title. How do I do that?-- SA...

Hey, Scripting Guy! How Can I Remove Everything From an Active Directory Group Except Other Groups?

(image) Hey, Scripting Guy! How can I remove all the members of a group unless that member is another group? I need a group that has only other groups as members, no individual users, computers, contacts, etc.-- TH(image) (image) (image) Hey, TH. You’ll have to be patient with us this morning; after all, we’re sending this column over ...

Hey, Scripting Guy! How Can I Determine the Manager for All the Groups in Active Directory?

(image) Hey, Scripting Guy! How can I return a list of all my Active Directory groups, along with the name of the user responsible for each group?-- PL(image) (image) (image) Hey, PL. You know, we realize that most of you are thinking, “Wow, this has been a busy month for you Scripting Guys. You guys really deserve to take some time off...