Showing results for OUs - Scripting Blog [archived]

Oct 13, 2005
0
0

How Can I Get a List of All the Users in an OU and Its Sub-OUs?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I get a list of all the users in an OU and its sub-OUs?-- MN Hey, MN. Thanks to either faulty wiring or a neighbor’s fireworks (the investigation was inconclusive), one of the Scripting Guys had the delightful experience of watching his garage burn down this summer. Because the Scripting Cars were never parked in the ...

Scripting Guy!VBScriptActive Directory
Sep 21, 2005
1
0

How Can I List All the Groups in an OU?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I list all the groups in an OU?-- MK Hey, MK. You know, sometimes people ask us a question and then immediately apologize for having asked it, believing that the question is “way too easy for you guys.” In turn, that seems to imply that the Scripting Guys aren’t really guys at all but simply great masses of intellectu...

Scripting Guy!VBScriptActive Directory
Jun 27, 2005
0
0

How Can I Retrieve a List of OUs that have a Specific Word in Their Name?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! We have a number of OUs in our domain that have the word Servers in the OU name. How can I retrieve a list of those OUs?-- AM Hey, AM. One of the Scripting Guys has a 15-year-old son who, whenever he hears his father tell a story about the good old days, rolls his eyes and says, “You’re just one of those old guys still living...

Scripting Guy!VBScriptActive Directory
Nov 12, 2004
0
0

How Can I Tell If an OU Has Any User Accounts In It?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I tell if an OU has any user accounts in it?-- RL Hey, RL. As a matter of fact, there is a way to determine whether or not an OU contains any user accounts: all you have to do is search just that OU for nothing but user accounts. When you perform a search, any “hits” (in this case, any user accounts that are found) co...

Scripting Guy!VBScriptActive Directory
Oct 21, 2004
0
0

How Can I Determine the OU a User Account Belongs To?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How do I determine the OU a user account belongs to?-- CO Hey, CO. Ah, yes: the OU a user belongs to. No doubt a lot of you are thinking, “Well, there’s probably an OU property of some kind in Active Directory that gives you that information. All you have to do is locate the user account, and then get the value of the OU prop...

Scripting Guy!VBScriptActive Directory