Search Overview

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Tool Location

The Search command-line tool is included when you install Windows Server 2003 Support Tools from the product CD or from the Microsoft Download Center ( For more information about how to install Windows Support Tools from the product CD, see Install Windows Support Tools (

Search.vbs: Active Directory Search Tool

This command-line tool performs searches against a Lightweight Directory Access Protocol (LDAP) server. It can be used by an Administrator or any user who wants to get information from Active Directory.

All search criteria are taken from the command line. However, certain properties of the search, such as the page size, can only be changed by modifying variable values in the script.

Corresponding UI

To search Active Directory, open Active Directory Users and Computers.


For a conceptual overview of LDAP, see the Understanding LDAP white paper on the MSDN web site.

For more information about Security Descriptors, see the Security Descriptor Definition Language topic on the MSDN Web site.

For more information about Active Directory, see Deploying Active Directory.

System Requirements

The following are the system requirements for this script:

  • A connection to an LDAP server.

File Required

  • Search.vbs

See Also


Search Remarks
Search Syntax
Alphabetical List of Tools
Search Overview
Replmon Overview
Repadmin Overview
Ldp Overview
Dsastat Overview
Clonepr Overview
ADSI Edit (adsiedit.msc)
Acldiag Overview