Showing results for OUs - Scripting Blog [archived]

Mar 21, 2007
0
0

How Can I Map a Drive Based on a User’s Name and OU?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! I need to create a logon script that maps a network drive based on the logged-on user’s user name and OU. How can I do that?-- KB Hey, KB. You know, KB, this is probably the toughest day of the year for the Scripting Guy who writes this column. For the past four days – Thursday, Friday, Saturday, and Sunday – he’s done nothin...

Scripting Guy!VBScriptActive Directory
Dec 6, 2006
0
0

How Can I Determine the OU the Local Computer Belongs To?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! In a logon script, which attribute do I use to determine the OU that the local computer belongs to?-- JP Hey, JP. Most people are familiar with Cupid, the Roman god of love. In fact, you’d be hard-pressed to find anyone who doesn’t know that Cupid carries with him a quiver of gold-tipped arrows. Get struck by one of Cupid’s arr...

Scripting Guy!scripting techniquesVBScript
Jan 13, 2006
0
0

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

ScriptingGuy1
ScriptingGuy1

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 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 bother to write detailed explanations of ...

Scripting Guy!VBScriptActive Directory
Jan 4, 2006
0
0

How Can I Move All the Users from One OU to Another OU?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I move all the users from one OU to another OU?-- PD Hey, PD. You know, when you work at Microsoft you quickly learn to hate to word “move.” After all, if it wasn’t for the fact that we own the buildings you would think we were trying to skip out on paying the rent; that’s how often we move from one place to another. ...

Scripting Guy!VBScriptActive Directory
Oct 26, 2005
0
0

How Can I Determine if an OU is Blocking Group Policy Inheritance?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I determine if an OU has the Group Policy property Block Policy Inheritance box checked?-- PP Hey, PP. You know, sometimes you wait all your life for a situation to arise, and then it never arises. For example, one of the Scripting Guys happens to know all nine verses to the song My Darlin’ Clementine. All his life he...

Scripting Guy!VBScriptActive Directory