Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
-help
Description: Adds a user to the directory.
Parameters:
Value
Description
<UserDN>
-samid <SAMName>
-fn <FirstName>
-fnp <FirstNamePhonetic>
Set user first name phonetic to <FirstNamePhonetic>.
-mi <Initial>
-ln <LastName>
-memberof <Group ...> Make user a member of one or more groups <Group ...>
-office <Office>
-tel <Phone#>
-email <Email>
-mobile <CellPhone#>
-fax <Fax#>
-iptel <IPPhone#>
-webpg <WebPage>
-title <Title>
-dept <Department>
-company <Company>
-mgr <Manager>
-hmdir <HomeDir>
-mustchpwd {yes | no} User must change password at next logon or not.
Default: no.
-canchpwd {yes | no}
-u <UserName>
formatted 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.
Remarks:
If you do not supply a target object at the command prompt, the target
object is obtained from standard input (stdin). Stdin data can be
accepted from the keyboard, a redirected file, or as piped output from
another command. To mark the end of stdin data from the keyboard or
in a redirected file, use Control+Z, for End of File (EOF).
The special token $username$ (case insensitive) may be used to place the SAM
account name in the value of a parameter. For example, if the target user DN
is CN=Jane Doe,CN=users,CN=microsoft,CN=com and the SAM account name
attribute is "janed," the -hmdir parameter can have
-hmdir \users\$username$\home
- hmdir \users\janed\home
See also:
dsadd computer /? - help for adding a computer to the directory.
dsadd contact /? - help for adding a contact to the directory.
dsadd group /? - help for adding a group to the directory.
dsadd ou /? - help for adding an organizational unit to the directory.
dsadd user /? - help for adding a user to the directory.
dsadd quota /? - help for adding a quota to the directory.
C:\Users\Administrator>