If you've forgotten your Windows login password, you can reset it using the "net" command.
I have used this on Windows 7 Home Premium 32 & 64 bit.
First of all some "net" usage ...
List users:
>net user
change password to pa55w0d for the user Ploppy pants :
>net user "Ploppy pants" pa55w0d
(note the use of quotes. This is only because there is a space in the user name Ploppy pants)
Activate the administrator account:
>net user administrator /active:yes
You can also prompt for the password using * :
>net user "Ploppy pants" *
Ok so that's all very well, but you can't get into command prompt to do this if you can't log in.
Here's the cool hacky bit.
In a nutshell we are going to replace the "Ease of access" (EoA) utility with command prompt.
See, when you get the login prompt there is a button (normally bottom left corner) that looks like this
Which normally opens the EoA dialogue. What we do is change the executable which is :
c:/windows/system32/Utilman.exe
to
c:/windows/system32/cmd.exe
So when you press the EoA button you'll get the command prompt where you can change the password.
You still need to access the file system to do so, which you can do with a recovery disk/usb/cd.
One of the recovery options is command prompt. And from there you can do a copy replace like this
>cd c:/windows/system32
>copy Utilman.exe Utilman-bup.exe (always back your shizz up!)
>copy cmd.exe Utilman.exe
( answer 'yes' to overwrite (if you get access denied then try to delete Utilman.exe first ))
Now in the code example above I assume Windows install directory is C: drive, which it normally is.
But when you're logged into command prompt via the recovery tools, the drive may change to a different letter.
If you run the 'System restore' option, along the way you will see hints of what drive Windows is installed on (according to the recovery function).
Also, instead of swapping cmd with EoA , you could replace the sticky keys dialogue with cmd :
>cd c:/windows/system32
>copy sethc.exe sethc-bup.exe (back it up!)
>copy cmd.exe sethc.exe
When you get the login box press Shift fives times ;)




