Using dsmod computer

Dsmod computer modifies attributes for computer objects in Active Directory. dsmod computer uses the following syntax.Table 4.17 explains all the dsmod.exe computer syntax in detail.

dsmod computer <ComputerDN ...> [-desc <Description>] [-loc <Location>] [-disabled {yes | no}] [-reset] [{-s <Server> | -d <Domain>}] [-u <UserName>] [-p {<Password> | *}] [-c] [-q] [{-uc | -uco | -uci}]

Table 4.17 Understanding Dsmod.exe Computer Syntax

Value

Description

<ComputerDN>

-desc <Description> -loc <Location> -disabled {yes | no}

-reset

Required. DNs of one or more computers to modify. If target objects are omitted, they will be taken from standard input (stdin) to support piping of output from another command to input of this command.

Sets computer description to <Description>.

Sets the location of the computer object to <Location>.

Sets whether the computer account is disabled (yes) or not (no).

Resets computer account.

-s <Server> connects to the domain controller (DC) with name <Server>.

-d <Domain> connects to a DC in domain <Domain>. Default: a DC in the logon domain.

Connect as <UserName>. Default: the logged-on user. Username can be: username, domain\username, or user principal name (UPN).

Password for the user <UserName>. If *, then prompt for password.

Continuous operation mode. Reports errors but continues with next object in argument list when multiple target objects are specified. Without this option, the command exits on first error.

Value Description

-q Quiet mode: suppresses all output to standard output.

{-uc | -uco | -uci} -uc specifies that input from or output to pipe is for matted in Unicode.

-uco specifies that output to pipe or file is formatted in Unicode.

-uci specifies that input from pipe or file is formatted in Unicode.

0 0

Post a comment