dsquery partition

DSQuery Partition

Search for Partition objects in active directory.

Syntax DSQuery Partition [-o {dn | rdn}] [-part Filter] [{-s Server | -d Domain}] [-u UserName] [-p {Password | *}] [-q] [-r] [-gc] [-limit NumberOfObjects] [{-uc | -uco | -uci}] Key -o The format used to display the search results. dn = distinguished name. rdn = relative distinguished name. -part Search for partitions whose common name (CN) match Filter -desc Search for partitions whose description matches. For example, "super*" -s Server to connect to (Default=the domain controller in the logon domain.) -d Domain to connect to. -u Username with which the user logs on to a remote server. -p Password (UserName or Domain\UserName or Username@domain.com) -q Quiet, suppress all output -r Recursive search (follow referrals) -gc Use the AD global catalog during the search. -limit The maximum number of objects to return, default=100. -uc Unicode format -uco Unicode format for output only -uci Unicode format for input only

DS* commands are available on networked machines with the server role A.D. Domain Services installed, Domain Controllers (or for XP users: XP Professional).

Examples

Find the distinguished names of all directory partitions in the current forest:

C:\> dsquery partition

“Find purpose, the means will follow” - Mohandas Gandhi

Related commands:

DSAdd - Add object

DSMod - Modify object

DSGet - Display object

DSMove - Move object

DSQuery - Search for objects

DSRM - Delete object

CSVDE - Import or export AD info in CSV format.

LDIFDE - Edit AD Objects, extend schema, import or export AD information.