Полезное‎ > ‎CMD‎ > ‎dsget‎ > ‎


DSGET Partition

Display Partition(s) from active directory.

      DSGET Partition ObjectDN [-dn] [-qdefault] [-qTmbstnWt] [-topobjowner Display]
                  [{-s Server | -d Domain}] [-u UserName] [-p {Password | *}]
				     [-c] [-q] [-l] [{-uc | -uco | -uci}]
  ObjectDN  Distinguished Name of the partition to view.
  -qdefault Display the default quota that applies to any security principal.
 -qTmbstnWt Display the Tombstone Weight Percent (0-100) The effect of the Quota limit for tombstone (deleted) objects.
            A weight of 100 % will treat tombstone objects the same as normal objects.
            A weight of 50 % will allow twice as many tombstone objects.
            e.g. a limit of 500 with -qTmbstnWt 50 will allow 400 objects + 200 tombstone objects
 -topobjowner Display a sorted list of security principals(users, computers etc)
            that own the largest number of directory objects across all directory
            partitions on the server and the number of objects they own.
            The number of accounts to list is specified by Display.
            0 = Display all object owners
            Default = 10 principals.
   -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)
   -c       Report errors, but continue with the next object after any error (when you specify multiple objects)
            by default dsget will exit when the first error occurs.
   -q       Quiet, suppress all output
   -l       Display entries in a list format. By default, dsget outputs a table format.
   -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).

Dsget can accept stdin from the keyboard, from a redirected file, or as piped output from another command e.g. DSQuery

-topobjowner will override any other parameters specified, dsget will display only the results of -topobjowner.


Display all directory partitions in the current domain that begin with "SS64", and display the top three object owners from each partition:

C:\> dsquery server -part SS64* | dsget server -part | dsget partition -topjobowner 3

“Love's dominion, like a king's, admits of no partition” - Ovid

Related commands:

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