Jak to zrobić
Witam potrzebuje utworzyć konto z wiersza poleceń ale tak zeby wymusic na uzytkowniku zmiane hasla przy pierwszym logowaniu.
Odpowiedzi: 4
oki juz sobie poradzilem. Dzieki za pomoc :)
Pokaz jaka komende wpisujesz.
Wszystko oK, tylko ze zwraca mi błąd:
"dsadd – operacja nie powiodła się: Wartość dla `Target object for this command'
ma niepoprawny format."
"dsadd – operacja nie powiodła się: Wartość dla `Target object for this command'
ma niepoprawny format."
tu masz wszystko
http://support.microsoft.com/?kbid=322684#3
a dokladniej
http://support.microsoft.com/?kbid=322684#3
a dokladniej
Creating a New User Account
1. Click Start, and then click Run.
2. In the Open box, type cmd.
3. At the command prompt, type the following command:
dsadd user userdn –samid sam_name
The following values are used in this command: userdn specifies the distinguished name (also known as the DN) of the user object that you want to add.
sam_name specifies the security account manager (SAM) name used as the unique SAM account name for this user (for example, Linda).
4. To specify the user account password, type the following command, where password is the password that is to be used for the user account:
dsadd user userdn –pwd password
NOTE: To view the complete syntax for this command, and to obtain more information about entering more user account information, at a command prompt, type dsadd user /?.
back to the top
Resetting a User Password
1. Click Start, and then click Run.
2. In the Open box, type cmd.
3. At the command prompt, type the following command:
dsmod user user_dn –pwd new_password
This command uses the following values: user_dn specifies the distinguished name of the user for which the password will be reset.
new_password specifies the password that will replace the current user password
4. If you want to require the user to change this password at the next logon process, type the following command:
dsmod user user_dn –mustchpwd {yes|no}
NOTE: If a password is not assigned, the first time the user tries to log on (by using a blank password), the following logon message is displayed:
You are required to change your password at first logon
After the user has changed the password, the logon process continues.
You must reset the services that are authenticated with a user account if the password for the service's user account is changed.
NOTE: To view the complete syntax for this command, and to obtain more information about entering more user account information, at a command prompt, type dsmod user /?.
Strona 1 / 1