Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
After creating a user account, you should set a password that a user will enter to log on to the network. If the password policies in the domain dictate that a password is required, you will have to set a password because Active Directory does not automatically add a password to a user account when it is created.
Table 7.3 shows the argument of the SetPassword method.
Table 7.3 Argument of the SetPassword Method
Argument | Type | Required | Default | Description |
---|---|---|---|---|
NewPassword | string | Yes | None | New password value |
Listing 7.2 contains a script that sets a user account password to a specified value. To carry out this task, the script performs the following steps:
Listing 7.2 Setting a User Account Password
|
|
After the user account is enabled, a user can log on as MyerKen in the na.fabrikam.com domain with the password i5A2sj*!
. The password is case sensitive when the user logs on from a computer running a Windows NT based operating system but is not case sensitive when the user logs on from computers running other Windows operating systems, such as Windows 98. For Windows NT based computers, a password of PASSWORD is not the same as a password of password.
Tip
Send us your feedback | « Previous | Next » |