Home
> Commands A-M
> Commands Ds-Dz
DSMOD
Description
| Syntax
| Parameters
| Switches
| Related
| Notes
| Examples
| Errorlevels
| Availability
Adds specific types of objects to the directory.
Syntax
DSMOD
{computer
| contact
| group
| ou
| partition
| quota
| server
| user}
/?
DSMOD
computer
computer_dn ...
[-c]
[-desc description]
[-disabled {yes | no}]
[-loc location]
[-p {password | *}]
[-q]
[-reset]
[{-s server
| -d domain}]
[-u user_name]
[-uc | -uci | -uco]
DSMOD
contact
contact_dn ...
[-c]
[-company company_name]
[-dept department]
[-desc description]
[-display display_name]
[-email email]
[-fax fax_number]
[-fn first_name]
[-hometel home_phone_number]
[-iptel ip_phone_number]
[-ln last_name]
[-mi middle_initial]
[-mobile cell_phone_number]
[-office office]
[-p {password | *}]
[-pager pager_number]
[-q]
[-tel phone_number]
[-title title]
[{-s server
| -d domain}]
[-u user_name]
[-uc | -uci | -uco]
DSMOD
group
group_dn ...
[{-addmbr
| -chmbr
| -rmmbr}
member_dn ...]
[-c]
[-desc description]
[-samid sam_name]
[-scope {g | l | u}]
[-secgrp {yes | no}]
[-p {password | *}]
[-q]
[{-s server
| -d domain}]
[-u user_name]
[-uc | -uci | -uco]
DSMOD
ou
organizational_unit_dn ...
[-c]
[-desc description]
[-p {password | *}]
[-q]
[{-s server
| -d domain}]
[-u user_name]
[-uc | -uci | -uco]
DSMOD
partition
partition_dn ...
[-c]
[-p {password | *}]
[-q]
[-qdefault value]
-qtmbstnwt percent
[{-s server
| -d domain}]
[-u user_name]
[-uc | -uci | -uco]
DSMOD
quota
quota_dn ...
[-c]
[-desc description]
[-p {password | *}]
[-q]
[-qlimit value]
[{-s server
| -d domain}]
[-u user_name]
[-uc | -uci | -uco]
DSMOD
server
server_dn ...
[-c]
[-desc description]
[-isgc {yes | no}]
[-p {password | *}]
[-q]
[{-s server
| -d domain}]
[-u user_name]
[-uc | -uci | -uco]
DSMOD
user
user_dn ...
[-acctexpires number_of_days]
[-c]
[-canchpwd {yes | no}]
[-company company_name]
[-dept department]
[-desc description]
[-disabled {yes | no}]
[-display display_name]
[-email email]
[-empid employee_id]
[-fax fax_number]
[-fn first_name]
[-hmdir home_directory]
[-hmdrv home_drive_letter]
[-hometel home_phone_number]
[-iptel ip_phone_number]
[-ln last_name]
[-loscr script_path]
[-mgr manager]
[-mi middle_initial]
[-mobile cell_phone_number]
[-mustchpwd {yes | no}]
[-office office]
[-p {password | *}]
[-pager pager_number]
[-profile profile_path]
[-pwd {Password | *}]
[-pwdneverexpires {yes | no}]
[-q]
[-reversiblepwd {yes | no}]
[{-s server
| -d domain}]
[-tel phone_number]
[-title title]
[-upn upn]
[-u user_name]
[-uc | -uci | -uco]
[-webpg web_page]
Parameters
- computer
(NTXP)
- Modifies attributes of one or more existing
computers in the directory.
- computer_dn
(NTXP)
- Specifies the distinguished names of one or more
computers to modify. If omitted, obtained through
standard input (stdin) to support piping of output
from another command.
- contact
(NTXP)
- Modifies attributes of one or more existing
contacts in the directory.
- contact_dn
(NTXP)
- Specifies the distinguished names of the contacts
that you want to modify. If omitted, obtained through
standard input (stdin) to support piping of output
from another command.
- group
(NTXP)
- Modifies attributes of one or more existing groups
in the directory.
- group_dn
(NTXP)
- Specifies the distinguished names of the groups
you want to modify. If omitted, obtained through
standard input (stdin) to support piping of output
from another command. If group_dn ... and
member_dn ...
are used together then only one parameter can be taken
from standard input, requiring that the other be
specified on the command-line.
- member_dn ...
(NTXP)
- Specifies the distinguished names of the members
you want to modify. If omitted, obtained through
standard input (stdin) to support piping of output
from another command to input of this command. If
group_dn ... and
member_dn ... are used together then only one can be
taken from standard input, requiring that the other be
specified on the command-line.
- ou
(NTXP)
- Modifies attributes of one or more existing
organizational units in the directory.
- organizational_unit_dn
(NTXP)
- Specifies the distinguished names of the
organizational units you want to modify. If omitted,
obtained through standard input (stdin) to support
piping of output from another command.
- partition
(NT2003)
- Modifies attributes of one or more existing
partitions in the directory.
- partition_dn ...
(NT2003)
- Specifies the distinguished names of one or more
directory partitions to modify. If omitted, obtained
through standard input (STDIN) to support piping of
output from another command to input of this command.
- quota
(NT2003)
- Modifies attributes of one or more existing quota
specifications in the directory.
- quota_dn ...
(NT2003)
- Specifies the distinguished names of one or more
quota specifications to modify. If omitted, obtained
through standard input (stdin) to support piping of
output from another command to input of this command.
- server
(NTXP)
- Modifies properties of a domain controller.
- server_dn ...
(NTXP)
- Specifies the distinguished names of one or more
servers that you want to modify. If omitted, obtained
through standard input (stdin) to support piping of
output from another command.
- user
(NTXP)
- Modifies attributes of one or more existing users
in the directory.
- user_dn ...
(NTXP)
- Specifies the distinguished names of the users you
want to modify. If values are omitted, they are
obtained through standard input (stdin) to support
piping of output from another command to input of this
command.
Switches
- /?
(NTXP)
- Display help.
- -acctexpires number_of_days
(NTXP)
- Specifies the number of days from today that the
user accounts will expire. A value of 0 sets
expiration at the end of today. A positive value sets
expiration in the future. A negative value sets
expiration in the past. The value of NEVER sets the
account to never expire.
- -addmbr
(NTXP)
- Specifies that members specified by one or more
member_dn ... to
be added to the group specified by
group_dn.
- -c
(NTXP)
- Reports errors, but continues with the next object
in the argument list when multiple target objects are
specified (continuous operation mode). If omitted, the
command exits on the first error.
- -canchpwd {yes | no}
(NTXP)
- Specifies if users can change their passwords at
all (yes) or not (no). The value of must be yes if the
value of the
-mustchpwd is yes.
- -chmbr
(NTXP)
- Specifies that members specified by one or more
member_dn ... to
be replaced in the group specified by
group_dn.
- -company company
(NTXP)
- Specifies the company information of the
contact/user objects you want to modify.
- -d domain
(NTXP)
- Connects the computer to a specified domain. By
default, the computer is connected to the domain
controller in the logon domain.
- -dept department
(NTXP)
- Specifies the departments of the contact/user
objects you want to modify.
- -desc description
(NTXP)
- Specifies the descriptions of the
computer/contact/group/organizational unit/server/user
objects you want to modify.
- -disabled {yes | no}
(NTXP)
- Specifies if the computer/user account is disabled
for logon (yes) or not (no).
- -display display_name
(NTXP)
- Specifies the display names of the contact/user
objects you want to modify.
- -email email
(NTXP)
- Specifies the e-mail addresses of the contact/user
objects you want to modify.
- -empid employee_id
(NTXP)
- Specifies the employee IDs of the user objects you
want to modify.
- -fax fax_number
(NTXP)
- Specifies the fax numbers of the contact/user
objects you want to modify.
- -fn first_name
(NTXP)
- Specifies the first names of the contact/user
objects you want to modify.
- -hmdir home_directory
(NTXP)
- Specifies the home directory locations of the user
objects you want to modify. If home_directory is given
as a universal naming convention (UNC) path, then you
must specify a mapped drive to this path must using
-hmdrv.
- -hmdrv home_drive_letter
(NTXP)
- Specifies the home directory drive letters of the
user objects you want to modify.
- -hometel home_phone_number
(NTXP)
- Specifies the home telephone numbers of the
contact/user objects you want to modify.
- -iptel ip_phone_number
(NTXP)
- Specifies the IP phone numbers of the contact/user
objects you want to modify.
- -isgc {yes | no}
(NTXP)
- Sets this server as a global catalog (yes) or
disables it (no).
- -ln last_name
(NTXP)
- Specifies the last names of the contact/user
objects you want to modify.
- -loc location
(NTXP)
- Specifies the location of the computer object you
want to modify.
- -loscr script_path
(NTXP)
- Specifies the logon script paths of the user
objects you want to modify.
- -mgr manager_dn
(NTXP)
- Specifies the distinguished names of the managers
of the user objects you want to modify.
- The manager can only be specified using the
distinguished name format.
- -mi middle_initial
(NTXP)
- pecifies the middle initial of the contact/user
objects you want to modify.
- -mobile cell_phone_number
(NTXP)
- Specifies the cell numbers of the contact/user
objects you want to modify.
- -mustchpwd {yes | no}
(NTXP)
- Specifies if users must change their passwords at
the time of next logon (yes) or not (no).
- -office office
(NTXP)
- Specifies the office locations of the contact/user
objects you want to modify.
- -p {password | *}
(NTXP)
- Specifies to use either a password or a * to log
on to a remote server.
If *, then prompted for password.
- -pager pager_number
(NTXP)
- Specifies the pager numbers of the contact/user
objects you want to modify.
- -profile profile_path
(NTXP)
- Specifies the profile paths of the user objects
you want to modify.
- -pwd {password | *}
(NTXP)
- Resets password or a * user password.
If *, then prompts for password.
- -pwdneverexpires {yes | no}
(NTXP)
- Specifies if user accounts never expires (yes) or
not (no).
- -q
(NTXP)
- Suppresses all output to standard output
(quiet mode).
- -qdefault value
(NT2003)
- Specifies that the default quota for the directory
partition be set to value. The default quota will
apply to any security principal (user, group, computer
or inetOrgPerson) who owns an object in the directory
partition, if no quota specification exists that
covers the security principal.
-1 is an unlimited quota.
- -qlimit value
(NT2003)
- Specifies the number of objects within the
directory partition that can be owned by the security
principal to which the quota object is assigned.
-1 is unlimited quota.
- -qtmbstnwt percent
(NT2003)
- Sets the percentage by which tombstone object
count should be reduced when calculating quota usage.
The percentage is specified by percent and must be
between 0 and 100.
- If a user were assigned a quota of 100, the user
could own a maximum of 100 normal objects or 400
tombstone objects in Active Directory.
- -reset
(NTXP)
- Resets computer accounts.
- -reversiblepwd {yes | no}
(NTXP)
- Specifies if user passwords should be stored using
reversible encryption (yes) or not (no).
- -rmmbr
(NTXP)
- Specifies that members specified by one or more
member_dn ... to
be removed from the group specified by
group_dn.
- -s server
(NTXP)
- Connects the computer to a specified server.
- -samid sam_name
(NTXP)
- Specifies that the SAM account names of the groups
you want to modify.
- -scope {g | l | u}
(NTXP)
- Sets the scope of the groups to global, local, or
universal. If the domain is in mixed-mode, then the
universal scope is not supported. It is not possible
to convert a domain local group to global group or
vice-versa.
- -secgrp {yes | no}
(NTXP)
- Sets the group types to security group (yes) or
distribution group (no).
- -tel phone_number
(NTXP)
- Specifies the telephone numbers of the
contact/user objects you want to modify.
- -title title
(NTXP)
- Specifies the titles of the contact/user objects
you want to modify.
- -u user_name
(NTXP)
- Specifies the user name with which user will log
on to a remote server. By default, the logged on user
name is used. You can specify a user name using one
of the formats:
user name
domain\user name
user principal name (UPN)
- -uc | -uci | -uco
(NT2003)
- Specifies that output or input data is
formatted in Unicode:
- -uc input from or output to a pipe (|)
- -uco output to a pipe (|) or a file
- -uci input from a pipe (|) or a file
- -upn upn
(NTXP)
- Specifies the user principal names of the user
objects you want to modify.
- -wegpg web_page
(NTXP)
- Specifies the Beb page URLs of the user objects
you want to modify.
Related
none.
Notes
none.
Examples
none.
Errorlevels
none.
Availability
- External
-
- DOS
-
none
- Windows
-
none
- Windows NT
-
NTXP
NT2003
Last Updated: 2003/07/28
Direct corrections or suggestions to:
Rick Lively