dsmod server

DSMOD Server

Modify a server in active directory.

Syntax DSMod server ServerDN [-desc Description] [-isgc {yes | no}] [{-s Server | -d Domain}] [-u UserName] [-p {Password | *}] [-c] [-q] [{-uc | -uco | -uci}] Key ServerDN Distinguished name of the server that you want to modify. If omitted will be taken from standard input (stdin) -desc Description of the server -isgc Add the global catalog to (yes) or remove it from (no) a domain controller. -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 Continue with the next object after any error (when you specify multiple target objects)

by default dsmod will exit when the first error occurs. -q Quiet, suppress all output -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).


Make Svr-DC1 a Global Catalogue Server:

C:\> dsmod server "CN=Svr-DC1,CN=Servers,CN=AcmeCo,DC=ss64,DC=Com" -isgc yes

“Let him that would move the world, first move himself” - Socrates

Related commands:

DSAdd - Add object

DSMod - Modify object

DSGet - Display object

DSMove - Move object

DSQuery - Search for objects

DSRM - Delete object

CSVDE - Import or export AD info in CSV format.

LDIFDE - Edit AD Objects, extend schema, import or export AD information.

Q322684 - Directory Service Command-Line Tools