Link to home
Start Free TrialLog in
Avatar of Tillu
Tillu

asked on

net user change password

Hello Experts

I have created 2 accounts

1) net user SQLsvc /add /expires:never "Very complex passw0rd"
2) net user SQLAgent /add /expires:never “Very complex pa$$w0rd”

I want to change the password for the first  SQLsvc  one can any one suggest a step by step procedure?
Avatar of ValentinoV
ValentinoV
Flag of Belgium image

Here's the official way to do it from Microsoft:

To change a user's password at the command prompt, log on as an administrator and type:

net user user_name * /domain
When you are prompted to type a password for the user, type the new password, not the existing password. After you type the new password, the system prompts you to retype the password to confirm. The password is now changed.

Alternatively, you can type the following command:
net user user_name  new_password
When you do so, the password changes without prompting you again. This command also enables you to change passwords in a batch file.

Non-administrators receive a "System error 5 has occurred. Access is denied" error message when they attempt to change the password.
Avatar of Tillu
Tillu

ASKER

Hello ValentinoV


I have used the second procedure it just showed the command completed successfully.
ASKER CERTIFIED SOLUTION
Avatar of ValentinoV
ValentinoV
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tillu

ASKER

Thanks for helping!!
Glad I could help you out!  But you selected the wrong answer as solution, it should have been my first comment...