Sign in
TechNet Blogs
Technet Blog Images
More ...
Browse by Tags
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
All Tags
>
ous
Server & Tools Blogs
>
Server & Management Blogs
>
Hey, Scripting Guy! Blog
All About Windows Server
Windows Server
Windows Server Essentials Blog
Building Clouds
Partner & Customer Solutions
Server & Cloud
Ask The
Performance Team
Ask Premier Field Engineering
Ask the Core Team
Cloud & Datacenter Management
The System Center Team Blog
System Center Virtual Machine Manager
System Center Service Manager
System Center Operations Manager
System Center Data Protection Manager
System Center Orchestrator
Partner & Customer Solutions
Client Management
System Center Configuration Manager
System Center Service Manager
MDOP
Malware Protection Center
Windows Intune
SUS
Partner and Customer Solutions
Virtualization, VDI & Remote Desktop
Virtualization Team Blog
Ben Armstrong’s Virtualization Blog
Jose Barreto Blog on Hyper-V
Partner & Customer Solutions
Remote Desktop Services
Windows Multipoint Server
Ask the Core Team on Hyper-V
File & Storage & High Availability
File & Storage
Jose Barreto
Partner & Customer Solutions
Ask the Core Team on Failover Cluster
Clustering & High Availability
Windows Server Management
PowerShell
Hey Scripting Guy (PowerShell)
Server Manager
Group Policy
Networking
Identity & Access
Ask Directory Services
Active Directory
Microsoft Leadership
Brad Anderson - In the Cloud
Hey, Scripting Guy! Blog
Learn about Windows PowerShell
Live Now on Server & Tools Blogs
Subscribe
Comments
Contact
Menu
Blog Home
Atom
Translate this page
Powered by
Microsoft® Translator
Twitter Feed
Recent Posts
Weekend Scripter: Add Power and Functionality to the PowerShell ISE Part 2
Posted
3 hours ago
by
The Scripting Guys
0
Comments
PowerTip: Find the Path to a PowerShell Module
Posted
15 hours ago
by
The Scripting Guys
0
Comments
Weekend Scripter: Add Power and Functionality to the PowerShell ISE Part 1
Posted
1 day ago
by
The Scripting Guys
0
Comments
PowerTip: Use PowerShell to Get Virtual Machine Start Mode
Posted
1 day ago
by
The Scripting Guys
0
Comments
Tags
Active Directory
ADSI
client-side printing
computer accounts
CSV and other delimited files
groups
printing
Quick-Hits Friday
Scripting Guy!
scripting techniques
searching Active Directory
user accounts
users
VBScript
Windows PowerShell
Windows Server
WMI
Related Resources
Script Center Home
Scripting Library
Learn to Script
Script Repository
Scripting Forum
2012 Scripting Games
Archives
Archives
May 2013
(40)
April 2013
(61)
March 2013
(62)
February 2013
(56)
January 2013
(62)
December 2012
(62)
November 2012
(68)
October 2012
(62)
September 2012
(62)
August 2012
(63)
July 2012
(32)
June 2012
(39)
May 2012
(33)
April 2012
(97)
March 2012
(44)
February 2012
(31)
January 2012
(31)
December 2011
(31)
November 2011
(30)
October 2011
(31)
September 2011
(30)
August 2011
(31)
July 2011
(31)
June 2011
(30)
May 2011
(31)
April 2011
(97)
March 2011
(41)
February 2011
(28)
January 2011
(31)
December 2010
(31)
November 2010
(30)
October 2010
(31)
September 2010
(30)
August 2010
(33)
July 2010
(31)
June 2010
(30)
May 2010
(67)
April 2010
(65)
March 2010
(34)
February 2010
(29)
January 2010
(23)
December 2009
(23)
November 2009
(22)
October 2009
(23)
September 2009
(22)
August 2009
(25)
July 2009
(24)
June 2009
(38)
May 2009
(22)
April 2009
(22)
March 2009
(22)
February 2009
(20)
January 2009
(22)
December 2008
(8)
November 2008
(17)
October 2008
(9)
September 2008
(8)
August 2008
(6)
July 2008
(5)
June 2008
(21)
May 2008
(21)
April 2008
(22)
March 2008
(21)
February 2008
(21)
January 2008
(22)
December 2007
(10)
November 2007
(20)
October 2007
(23)
September 2007
(19)
August 2007
(23)
July 2007
(21)
June 2007
(21)
May 2007
(22)
April 2007
(21)
March 2007
(22)
February 2007
(21)
January 2007
(21)
December 2006
(11)
November 2006
(20)
October 2006
(22)
September 2006
(20)
August 2006
(23)
July 2006
(20)
June 2006
(22)
May 2006
(22)
April 2006
(20)
March 2006
(23)
February 2006
(20)
January 2006
(21)
December 2005
(16)
November 2005
(20)
October 2005
(21)
September 2005
(21)
August 2005
(23)
July 2005
(20)
June 2005
(22)
May 2005
(21)
April 2005
(21)
March 2005
(22)
February 2005
(20)
January 2005
(21)
December 2004
(16)
November 2004
(20)
October 2004
(21)
September 2004
(21)
August 2004
(22)
More
▼
Less
▲
Tagged Content List
Blog Post:
Hey, Scripting Guy! How Can I Create Users and Organizational Units with Active Directory Domain Services Cmdlets?
ScriptingGuy1
Hey, Scripting Guy! I am interested in using Active Directory Domain Services (AD DS) cmdlets to create users and organizational units. Is this a hard thing to do? I only ask this because I am an extremely busy network administrator who has barely had time to begin looking at Windows PowerShell. I do...
on
26 Jan 2010
Blog Post:
Hey, Scripting Guy! How Can I Move a Group from One Organizational Unit to Another?
ScriptingGuy1
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. After the group and the organizational unit have been...
on
30 Jul 2009
Blog Post:
Hey, Scripting Guy! How Can I Create Organizational Units with Windows PowerShell?
ScriptingGuy1
( 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 Active Directory Users and Computers tool...
on
27 Jul 2009
Blog Post:
Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (05/01/09)
ScriptingGuy1
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 I find it very helpful. Is there someplace people...
on
2 May 2009
Blog Post:
Hey, Scripting Guy! How Can I Determine the Distinguished Name of the OU Where the Logged-On User’s User Account Resides?
ScriptingGuy1
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 all, May 12 th is the birthday of Cosimo II...
on
13 May 2008
Blog Post:
Hey, Scripting Guy! How Can Retrieve a List of All My Computer Accounts, Grouped By OU?
ScriptingGuy1
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 Monday. Not that he’s all that excited about...
on
1 Apr 2008
Blog Post:
Hey, Scripting Guy! How Can I List All the Users in an OU Who Are Not Members of a Specified Group?
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...
on
29 Feb 2008
Blog Post:
Hey, Scripting Guy! How Can I Modify the Email Addresses of All the Users in an OU and Its SubOUs?
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...
on
8 Jan 2008
Blog Post:
Hey, Scripting Guy! How Can I Remove Group Members Whose User Accounts Reside in a Specific OU?
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?...
on
2 Jan 2008
Blog Post:
How Can I Map a Printer Based on the Computer’s OU?
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...
on
28 Jul 2007
Blog Post:
How Can I Determine the Topmost OU For an Active Directory Object?
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...
on
10 May 2007
Blog Post:
How Can I Map a Drive Based on a User’s Name and OU?
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...
on
21 Mar 2007
Blog Post:
How Can I Determine the OU the Local Computer Belongs To?
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...
on
6 Dec 2006
Blog Post:
How Can I List All the Sub-OUs in an OU?
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...
on
13 Jan 2006
Blog Post:
How Can I Move All the Users from One OU to Another OU?
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...
on
4 Jan 2006
Blog Post:
How Can I Determine if an OU is Blocking Group Policy Inheritance?
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...
on
26 Oct 2005
Blog Post:
How Can I Get a List of All the Users in an OU and Its Sub-OUs?
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...
on
13 Oct 2005
Blog Post:
How Can I List All the Groups in an OU?
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...
on
21 Sep 2005
Blog Post:
How Can I Retrieve a List of OUs that have a Specific Word in Their Name?
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...
on
27 Jun 2005
Blog Post:
How Can I Tell If an OU Has Any User Accounts In It?
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” ...
on
12 Nov 2004
Blog Post:
How Can I Determine the OU a User Account Belongs To?
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...
on
21 Oct 2004
Blog Post:
How Can I Enumerate All the Objects in an Active Directory OU?
ScriptingGuy1
Hey, Scripting Guy! How can I enumerate all the objects in an Active Directory OU? -- RB Hey, RB. By the way, thanks: it’s always nice to get an easy question every once in awhile! Enumerating all the objects in an OU is almost embarrassingly-simple: by default, any time you bind to an OU using ADSI...
on
2 Sep 2004
Page 1 of 1 (22 items)