DSQuery Partition (installable option either via RSAT /AD DS or adminpack.msi)

Search for Partition objects in active directory.

      DSQuery Partition [-o {dn | rdn}]  [-part Filter] 
         [{-s Server | -d Domain}] [-u UserName] [-p {Password | *}]
            [-q] [-r] [-gc] [-limit NumberOfObjects]  [{-uc | -uco | -uci}]

   -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


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

C:\> dsquery partition

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


DSAdd - Add object
DSMod - Modify object
DSGet - Display object
DSMove - Move object
DSQuery - Search for objects
DSRM - Delete object

Copyright © SS64.com 1999-2018
Some rights reserved