Special Sponsor

Tuesday, December 18, 2007

Change User password in Windows

Changing a user password especially administrator account is easier with command line. It can be done without any problem and can be done without logout the current user. Here how to do it. Tested and work in Windows 2000 SP4, Windows XP SP2, Windows Vista Home Basic (but have a problem to run as user).

First open windows command shell (cmd)
Then type hostname
Type runas /user:’hostname’\administrator cmd (we want to run cmd with root[very powerful user] privilege)

Then system will prompt password for current user.. Just enter the current one.
The new cmd windows will comeout
Then type net user administrator * (note: * for the password not visible)
Type new password.

Re-type the password back then enter.

For verify the passwd change or not use runas /user:’hostname’\administrator cmd
Enter the new password, if the cmd windows comeout then success.

No comments: