O'Reilly logo

Windows Server 2003 in a Nutshell by Mitch Tulloch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

dsget — new in WS2003

Synopsis

Displays properties of objects in Active Directory.

Syntax

dsget command 
                     switches [{-s Server|-d Domain}] [-u UserName] 
[-p {Password|*}] [-q] [-c] [-l] [-desc]

Options

command

Any dsget command (see below).

switches

Various switches that go with each command (see below)

{-s Server | -d Domain}

Connect to a specified server or domain to run the command (if omitted, defaults to domain controller in logon domain).

[-u UserName] [-p {Password | *}]

Credentials for running the command. Specify UserName as domain\user or user@domain. If -p *, prompts for password.

-q

Runs in quiet mode to suppress standard output of command.

-c

Reports errors and then continues with next object in argument list if multiple objects are specified; otherwise exits upon error.

-l

Displays output in list format instead of the default table format.

-desc

Displays the description for the object.

Commands

Here is a list of supported dsget commands together with a brief description of their syntax (only the most commonly used switches are described):

dsget computer ComputerDN... [-dn] [-samid] [-sid] [-disabled] [-part PartitionDN [-qlimit] [-qused]]

Displays properties of one or more computer accounts identifed by their distinguished names. Options include:

-dn

Displays the distinguished name of each computer

-samid

Displays the SAM account name of each computer

-sid

Displays the SID of each computer

-disabled

Displays whether computer account is enabled (yes) or disabled (no)

-part PartitionDN [-qlimit] ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required