Sign in
TechNet Blogs
Technet Blog Images
More ...
Browse by Tags
TechNet Blogs
>
Hey, Scripting Guy! Blog
>
All Tags
>
vbscript
>
searching active directory
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 1
Posted
3 hours ago
by
The Scripting Guys
0
Comments
PowerTip: Use PowerShell to Get Virtual Machine Start Mode
Posted
15 hours ago
by
The Scripting Guys
0
Comments
Change Virtual Machine Network Configuration with PowerShell
Posted
1 day ago
by
The Scripting Guys
1
Comments
Scripting Wife Comments on Beginner Event 4
Posted
1 day ago
by
The Scripting Guys
0
Comments
Tags
Active Directory
ActiveX Data Objects (ADO)
ADSI
computer accounts
Excel spreadsheet
groups
Microsoft Excel
Office
OUs
Quick-Hits Friday
Scripting Guy!
scripting techniques
troubleshooting
user accounts
users
Windows PowerShell
Related Resources
Script Center Home
Scripting Library
Learn to Script
Script Repository
Scripting Forum
2012 Scripting Games
Archives
Archives
May 2013
(38)
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! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (11/21/08)
ScriptingGuy1
Troubleshooting the “Object Is Required” Error Hey, Scripting Guy! I am having a problem with my script. It keeps coming back and saying that an object is required. Why does it do that? - KA Hi KA, "Object required" is very generic. It means that (wait for it) an object is required. It...
on
22 Nov 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 the Members of a Domain Group That Belongs to the Local Administrators Group?
ScriptingGuy1
Hey, Scripting Guy! I manage over 300 servers in our environment. For each server I need to determine the members of the local Administrators account. It’s easy to get a list of local users and domain users that belong to the Admin account; it’s also easy to get a list of any domain groups that belong...
on
20 Mar 2008
Blog Post:
Hey, Scripting Guy! How Can I Get a List of Active Directory Groups That Have Just 1 Member or Fewer?
ScriptingGuy1
Hey, Scripting Guy! We’re trying to straighten out our Active Directory, and in order to do so, I’ve been asked to come up with a list of all the groups that have just 1 member or fewer. How can I write a script that will return this information for me? -- DR Hey, DR. Before we answer...
on
18 Mar 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 Search Multiple OUs in Active Directory?
ScriptingGuy1
Hey, Scripting Guy! I have an HTA that searches Active Directory for user accounts and then displays those user names. We have 10 OUs in Active Directory, but I only want to retrieve the users from three of those OUs. How do I do that? -- DP Hey, DP. Here’s a little secret for you: it’s very easy...
on
10 Oct 2007
Blog Post:
Hey, Scripting Guy! How Can I Determine the Home Directory For All the Disabled User Accounts in Active Directory?
ScriptingGuy1
Hey, Scripting Guy! How can I determine the home directory for all the disabled user accounts in Active Directory? -- DB Hey, DB. You know, it’s not like the Scripting Guy who writes this column is addicted to TV or anything, but last night he was watching TV (as usual) when he saw a brief feature...
on
3 May 2007
Blog Post:
How Can I Search Active Directory for User Names Stored in an Excel Spreadsheet?
ScriptingGuy1
Hey, Scripting Guy! How can I take user names from an Excel spreadsheet, search for those users in Active Directory, and then indicate whether or not each user was found? -- SD Hey, SD. You know, one of the drawbacks to writing a daily scripting column is that people never seem to believe you. For...
on
1 Dec 2006
Blog Post:
How Can I Retrieve Information Required by the Sarbanes-Oxley Act?
ScriptingGuy1
Hey, Scripting Guy! As part of our Sarbanes-Oxley requirements I need to get a list of all my Active Directory users, along with the date that their account was created and the last time their password was changed. How can I get a list like that? -- DB Hey, DB. You know, this past weekend the Scripting...
on
1 Aug 2006
Blog Post:
How Can I Move a Computer From an Unknown OU into a Known OU?
ScriptingGuy1
Hey, Scripting Guy! How can I move a computer from an unknown OU into a known OU? -- DB Hey, DB. You know, a lot of people take a look at system administration scripting and think, “Well, it might be useful, but it sounds kind of boring.” After all, clearing event logs and changing user passwords...
on
23 Jun 2006
Blog Post:
How Can I Use a Script to Create a Sequential Series of User Accounts?
ScriptingGuy1
Hey, Scripting Guy! For purposes of testing, I often need to create multiple user accounts like this: pgeorge01, pgeorge02, etc. How can I write a script that automatically creates the next account in the sequence; that is, pgeorge03? -- RG Hey, RG. You know, after our last experiment went horribly...
on
16 May 2006
Blog Post:
How Can I Get a List of All the Users Who Have an Alternate Recipient?
ScriptingGuy1
Hey, Scripting Guy! How can I get a list of all the users who have an alternate recipient (altRecipient)? -- SA Hey, SA. You know, one of the great things about being a Scripting Guy is that we don’t ever have to know what we’re talking about; all we do have to know is how to write a script that does...
on
22 Mar 2006
Blog Post:
How Can I Count the Number of Computers in a Domain?
ScriptingGuy1
Hey, Scripting Guy! How can I count the number of computers in a domain? -- TN Hey, TN. Here’s a true story for you. About 5 years ago, when one of the Scripting Guys first started at Microsoft, his group here (which might not be the most technically-savvy group at the company) needed to get a count...
on
27 Jan 2006
Blog Post:
How Can I Get a List of All the Objects that have been Added to Active Directory Since a Specified Date?
ScriptingGuy1
Hey, Scripting Guy! How can I get a list of all the objects that have been added to Active Directory since a specified date? -- KR Hey, KR. First of all we’d like to apologize if our answer here is still a little soggy. No doubt you’ve seen cartoons where someone receives a package in the mail, they...
on
25 Jan 2006
Blog Post:
How Can I Add a User to a Group, but Only if that User is a Member of the IT Department?
ScriptingGuy1
Hey, Scripting Guy! How can I add a user to a group, but only if that user is a member of the IT department? -- JV Hey, JV. You know, this is your lucky day: not only are we going to show you how you can add a specified user to a group (assuming, of course, that this user is a member of the IT department...
on
23 Jan 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 Use Alternate Credentials When Searching Active Directory?
ScriptingGuy1
Hey, Scripting Guy! How can I use alternate credentials when searching Active Directory? -- PT Hey, PT. So what’s the big idea here? Devoted readers of this column (both of them) know that we usually love tackling questions where the answer involves searching Active Directory. Why? That’s...
on
9 Dec 2005
Blog Post:
How Can I Get a List of All the Groups Whose Name Starts with G-S-Group?
ScriptingGuy1
Hey, Scripting Guy! How can I use wildcards to get a list of all the groups whose name starts with G-S-Group? -- JD Hey, JD. It’s the day before Thanksgiving, and one of the Scripting Guys is headed out of town as soon as he finishes his Hey, Scripting Guy! column. And what a coincidence...
on
23 Nov 2005
Blog Post:
How Can I Determine the Logon Name for a User?
ScriptingGuy1
Hey, Scripting Guy! How can I determine the user logon name for a user named John Smith? -- FR Hey, FR. You know, we’d like to tell you how to determine the user logon name for a user named John Smith, but we can’t: that’s because we have a specific list of names representing the only user names we...
on
29 Sep 2005
Blog Post:
How Can I Determine Which Attributes are Replicated to the Global Catalog?
ScriptingGuy1
Hey, Scripting Guy! How can I find out which attributes are replicated to the global catalog? -- AS Hey, AS. When people envision the future, they often foresee enormous skyscrapers, buildings so large that you might live your whole life without ever leaving them: you’ll live there, work there, go...
on
22 Aug 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 Get a List of All the Disabled User Accounts in Active Directory?
ScriptingGuy1
Hey, Scripting Guy! How can I get a list of all the disabled user accounts in Active Directory? -- RT Hey, RT. Now, just remember, you asked for this. We have a script that returns a list of disabled user accounts in Active Directory; the only problem is that part of the script is a little cryptic...
on
12 May 2005
Blog Post:
How Can I Display a Multi-Valued Attribute Returned from an Active Directory Search?
ScriptingGuy1
Hey, Scripting Guy! How can I display a multi-valued attribute that I get back when using ADO to search Active Directory? -- ES Hey, ES. For the most part Active Directory is a script writer’s paradise; with very few exceptions anything you can do using the Active Directory snap-ins and GUI tools...
on
14 Apr 2005
Blog Post:
How Can I Get a List of All My Windows Server 2003 Computers?
ScriptingGuy1
Hey, Scripting Guy! How can I gather the names of all the computers in my domain that are running Windows Server 2003? -- AS Hey, AS. When we choose questions to answer for this column, we try to take questions from different areas of scripting. That does two things for us: it keeps us from being...
on
2 Feb 2005
Blog Post:
How Can I Return a List of All My Computers Except Those in a Specified OU?
ScriptingGuy1
Hey, Scripting Guy! I need to get back a list of all the computers in my domain, except for the computers which are in our Test Lab OU. How do I do that? -- AM Hey, AM. This seems to be one of the hot new trends in the IT world: in the past two weeks we’ve gotten three similar emails, all involving...
on
7 Dec 2004
Page 1 of 2 (27 items)
1
2