DSQuery Partition (installable option via RSAT /AD DS)

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.

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.


 
Copyright © 1999-2024 SS64.com
Some rights reserved