Scripting Blog [archived]

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

How Can I Get a List of All the Objects that have been Added to Active Directory Since a Specified Date?

(image) Hey, Scripting Guy! How can I get a list of all the objects that have been added to Active Directory since a specified date?-- KR(image) (image) (image) Hey, KR. First of all we’d like to apologize if our answer here is still a little soggy. No doubt you’ve seen cartoons where someone receives a package in the mail, they hear ...

How Can I Add a User to a Group, but Only if that User is a Member of the IT Department?

(image) Hey, Scripting Guy! How can I add a user to a group, but only if that user is a member of the IT department?-- JV(image) (image) (image) Hey, JV. You know, this is your lucky day: not only are we going to show you how you can add a specified user to a group (assuming, of course, that this user is a member of the IT department), but...

How Can I List All the Sub-OUs in an OU?

(image) Hey, Scripting Guy! How can I list all the sub-OUs in an OU? That includes any OUs that might be in those sub-OUs.-- JE(image) (image) (image) Hey, JE. If you’re the least bit familiar with this column then you know that we Scripting Guys love to answer questions that involve searching Active Directory. That’s because we never ...

How Can I Get a List of All the Groups Whose Name Starts with G-S-Group?

(image) Hey, Scripting Guy! How can I use wildcards to get a list of all the groups whose name starts with G-S-Group?-- JD (image) (image) (image) Hey, JD. It’s the day before Thanksgiving, and one of the Scripting Guys is headed out of town as soon as he finishes his Hey, Scripting Guy! column. And what a coincidence: he happened to ...