|
Parameter
|
Description
|
|---|
<UserDN> | Required. Specifies the distinguished names of the users that 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. |
-upn <UPN> | Specifies the user principal names (UPNs) of the users that you want to modify, for example, Linda@widgets.contoso.com. |
-fn <FirstName> | Specifies the first names of the user objects you want to modify. |
-mi <Initial> | Specifies the middle initials of the user objects you want to modify. |
-ln <LastName> | Specifies the last names of the user objects you want to modify. |
-display <DisplayName> | Specifies the display names of the user objects you want to modify. |
-empid <EmployeeID> | Specifies the employee IDs of the user objects you want to modify. |
-pwd {<Password> | *} | Resets the passwords for the users that you want to modify as Password or an asterisk (*). If you type *, AD DS prompts you for a user password. |
-desc <Description> | Specifies the descriptions of the user objects you want to modify. |
-office <Office> | Specifies the office locations of the user objects you want to modify. |
-tel <PhoneNumber> | Specifies the telephone numbers of the user objects you want to modify. |
-email <E-mailAddress> | Specifies the e-mail addresses of the user objects you want to modify. |
-hometel <HomePhoneNumber> | Specifies the home telephone numbers of the user objects you want to modify. |
-pager <PagerNumber> | Specifies the pager numbers of the user objects you want to modify. |
-mobile <CellPhoneNumber> | Specifies the cell numbers of the user objects you want to modify. |
-fax <FaxNumber> | Specifies the fax numbers of the user objects you want to modify. |
-iptel <IPPhoneNumber> | Specifies the IP phone numbers of the user objects you want to modify. |
-webpg <WebPage> | Specifies the Web page URLs of the user objects you want to modify. |
-title <Title> | Specifies the titles of the user objects you want to modify. |
-dept <Department> | Specifies the departments of the user objects you want to modify. |
-company <Company> | Specifies the company information of the user objects you want to modify. |
-mgr <Manager> | Specifies the distinguished names of the managers of the user objects you want to modify. You can only use the distinguished name format to specify the manager. |
-hmdir <HomeDirectory> | Specifies the home directory locations of the user objects you want to modify. If HomeDirectory is given as a UNC name, you must specify a mapped drive to this path by using the -hmdrv parameter. |
-hmdrv <DriveLetter> : | Specifies the home directory drive letters (for example, E:) of the user objects you want to modify. |
-profile <ProfilePath> | Specifies the profile paths of the user objects you want to modify. |
-loscr <ScriptPath> | Specifies the logon script paths of the user objects you want to modify. |
-mustchpwd{ yes| no} | Specifies whether users must change their passwords when they next log on. The available values are yes and no. Yes indicates that users must change their passwords and no indicates that they do not have to change their passwords. |
-canchpwd {yes | no} | Specifies whether users can change their passwords. The available values are yes and no. Yes indicates that users can change their passwords and no indicates that they cannot change their passwords. The value of this parameter must be yes if the value of the -mustchpwdparameter is yes. |
-reversiblepwd {yes | no} | Specifies whether AD DS stores user passwords by using reversible encryption. The available values are yes and no. Yes indicates that AD DS stores user passwords by using reversible encryption and no indicates that AD DS does not store user passwords by using reversible encryption. |
-pwdneverexpires {yes | no} | Specifies whether user accounts never expire. The available values are yes and no. Yes indicates that user passwords never expire and no indicates that user passwords do expire. |
-acctexpires <NumberOfDays> | Specifies the number of days from today that the user accounts 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. For example, a value of 0 specifies that the account expires at the end of today. A value of -5 specifies that the account expires 5 days in the past. A value of 5 specifies that the account expires 5 days in the future. |
-disabled {yes | no} | Specifies whether AD DS disables user accounts for logon. The available values are yes and no. Yes indicates that AD DS disables user accounts for logon and no indicates that AD DS does not disable user accounts for logon. |
{-s <Server> | -d <Domain>} | Connects a computer to a remote server or domain that you specify. By default, dsmod connects the computer to the domain controller in the logon domain. |
-u <UserName> | Specifies the user name with which the user logs on to a remote server. By default, -u uses the user name with which the user logged on. You can use any of the following formats to specify a user name: -
user name (for example, Linda)
-
domain\user name (for example, widgets\Linda)
-
user principal name (UPN) (for example, Linda@widgets.contoso.com)
|
-p {<Password> | *} | Specifies to use either a password or an asterisk (*) to log on to a remote server. If you type *, dsmod prompts you for a password. |
-c | Reports errors, but continues with the next object in the argument list when you specify multiple target objects (continuous operation mode). If you do not supply this parameter, dsmod exits when the first error occurs. |
-q | Suppresses all output to standard output (quiet mode). |
{-uc | -uco | -uci} | Specifies that output or input data is formatted in Unicode. The following list explains each format. - -uc: Specifies a Unicode format for input from or output to a pipe (|).
- -uco : Specifies a Unicode format for output to a pipe (|) or a file.
- -uci: Specifies a Unicode format for input from a pipe (|) or a file.
|
/? | Displays help at the command prompt. |