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?
SQLMicrosoft SQL ServerWindows OS

Avatar of undefined
Last Comment
ValentinoV

8/22/2022 - Mon
ValentinoV

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.
Tillu

ASKER
Hello ValentinoV


I have used the second procedure it just showed the command completed successfully.
ASKER CERTIFIED SOLUTION
ValentinoV

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Tillu

ASKER
Thanks for helping!!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ValentinoV

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