I found myself needing to change the administrator’s password on my Windows XP machine today. I’ve used that account exactly twice; once to setup the machine and then to create the user account that I use every day. So no, I don’t remember the absurdly complex password I came up with 3 years ago when I built this machine.
Luckily, I’ve ignored my own advice and have granted admin privileges to my user account. Only users with admin privileges can change other users’ passwords. This method will also work to change your own password even if you don’t have admin privileges.
C:\net user administrator * Type a password for the user: asifiwouldtellyou Retype the password to confirm: asifiwouldtellyou The command completed successfully.
You can also change it without being prompted (useful in scripts):
C:\net user administrator thenewpasswordgoeshere The command completed successfully.