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

dsadd — new in WS2003

Synopsis

Adds users, groups, and other objects to Active Directory and configures AD quotas.

Syntax

dsadd command 
                     switches [{-s Server|-d Domain}] [-u UserName] 
[-p {Password|*}] [-q] [-dsec Description]

Options

command

Any dsadd command (see later list).

switches

Various switches that go with each command (see later list).

{-s Server | -d Domain}

Connects 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.

-desc Description

Specifies the description for the object.

Commands

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

dsadd computer ComputerDN

Adds a computer account to Active Directory with distinguished name ComputerDN.

dsadd contact ContactDN [-fn FirstName] [-ln LastName] [-email Email]

Adds a contact to Active Directory with distinguished name ContactDN.

dsadd group GroupDN [-secgrp {yes | no}] [-scope {l | g | u}]

Adds a group to Active Directory with distinguished name GroupDN. The -secgrp yes option creates a security group (the default) while the -scope option creates either a local, global, or universal group (default is global).

dsadd ou OrganizationalUnitDN

Adds an organizational unit to Active Directory ...

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