Showing results for OUs - Scripting Blog [archived]

Feb 29, 2008
Post comments count0
Post likes count0

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

ScriptingGuy1
ScriptingGuy1

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 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 to extend the Games for a couple mor...

Scripting Guy!VBScriptActive Directory
Jan 8, 2008
Post comments count0
Post likes count0

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

ScriptingGuy1
ScriptingGuy1

  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 Hey, TB. You know, we had to think twice before going ahead and answering this question. That’s not because this a particularly difficult question for u...

Scripting Guy!VBScriptActive Directory
Jan 2, 2008
Post comments count0
Post likes count0

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

ScriptingGuy1
ScriptingGuy1

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 Hey, AD, and hey to everyone else out the...

Scripting Guy!VBScriptActive Directory
Jul 28, 2007
Post comments count0
Post likes count0

How Can I Map a Printer Based on the Computer’s OU?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I map a printer based on the local computer’s OU?-- TG Hey, TG. Before we begin, we’d like to offer a sincere and heartfelt apology to the Scripting Editor. In a recent column, we made it sound as if, in her words, the Scripting Editor was a “ditzy teenager.” That, of course, is not the case. Instead, we were just po...

Scripting Guy!VBScriptActive Directory
May 10, 2007
Post comments count0
Post likes count0

How Can I Determine the Topmost OU For an Active Directory Object?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! Given a distinguished name, how can I determine the “topmost” OU?-- HF Hey, HF. You know, as he was driving in to work this morning, the Scripting Guy who writes this column heard an advertisement for a series of adult education courses being offered by a local community college. As you might expect, this commercial pointed o...

Scripting Guy!VBScriptActive Directory