Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » OUs   (RSS)

Hey, Scripting Guy! How Can I Move a Group from One Organizational Unit to Another?

Hey Scripting Guy! I need to be able to move a group from one organizational unit to another. The problem is that our network has thousands of groups and organizational units. What I need is a way to easily find the group and the organizational unit.

Hey, Scripting Guy! How Can I Create Organizational Units with Windows PowerShell?

( Note Today’s response is taken from Ed Wilson’s book, Windows PowerShell Step by Step , which is available on Microsoft Press.) Hey, Scripting Guy! At my company, we are often called upon to create objects in Active Directory. I do not mind using the

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (05/01/09)

How Can I Get Help with Scripts I’m Writing? Hey, Scripting Guy! I am a novice scripter but am being diligent about learning more specifically around VBScript. I am following the Microsoft Press book, Windows Scripting Self-Paced Learning Guide , and

Hey, Scripting Guy! How Can I Determine the Distinguished Name of the OU Where the Logged-On User’s User Account Resides?

Hey, Scripting Guy! As part of a logon script, I need to determine the distinguished name of the OU for the user logging on. How can I do that? -- LK Hey, LK. Today is May 12 th , which might not mean much to you. But, then again, maybe it does; after

Hey, Scripting Guy! How Can Retrieve a List of All My Computer Accounts, Grouped By OU?

Hey, Scripting Guy! How can I get a list of all the computers in my domain, grouping those computers by the OU in which the computer account resides? -- TA Hey, TA. Well, today is Monday, and the Scripting Guy who writes this column is actually glad it’s

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

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

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

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

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

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

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

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
Posted by ScriptingGuy | 0 Comments
Filed under: ,

How Can I Force All the Users in an OU to Change Their Password the Next Time They Log On?

Hey, Scripting Guy! How can I write a script that will force all the users in an OU to change their password the next time they log on? -- TH Hey, TH. You know, you picked a bad day to ask a question; the Scripting Guy who writes this column is in an
Posted by ScriptingGuy | 0 Comments
Filed under: , ,

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

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

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

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

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

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

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

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

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

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
More Posts Next page »
 
Page view tracker