Scripting Blog [archived]

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

Hey, Scripting Guy! How Can I List All the Users in an OU Who Are Not Members of a Specified Group?

(image) Hey, Scripting Guy! How can I get a list of all the users in an OU who are not a member of a specified group?-- TJ (image) (image) (image) Hey, TJ. You know, the Scripting Guys are having so much fun with the 2008 Winter Scripting Games that we just can’t bear to see the excitement come to an end; therefore, we’ve decided...

Hey, Scripting Guy! How Can I Modify the Email Addresses of All the Users in an OU and Its SubOUs?

 (image) Hey, Scripting Guy! I need to get a list of all the users in an OU and its subOUs, then change their email addresses so those addresses only user lowercase letters. How can I do that?-- TB(image) (image) (image) Hey, TB. You know, we had to think twice before going ahead and answering this question. That’s not because this ...

Hey, Scripting Guy! How Can I Remove Group Members Whose User Accounts Reside in a Specific OU?

(image) Hey, Scripting Guy! I have a problem and I haven’t quite figured out how to solve it. I have an Active Directory group, and I’d like to remove some users from that group; in particular, I’d like to remove all the users whose user accounts reside in a specified OU. How do I do that?-- AD (image) (image) (image) Hey...