net user change password

Tillu
Tillu used Ask the Experts™
on
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?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ValentinoVBI Consultant
Most Valuable Expert 2011

Commented:
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.

Author

Commented:
Hello ValentinoV


I have used the second procedure it just showed the command completed successfully.
BI Consultant
Most Valuable Expert 2011
Commented:
okay so that means you were able to change the password, and have actually changed it...

Author

Commented:
Thanks for helping!!
ValentinoVBI Consultant
Most Valuable Expert 2011

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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial