Reset Password

Reset a local password from the recovery console by swapping the on-screen keyboard for cmd.exe.

Caution: this replaces osk.exe under c:\Windows. Revert after login.

Recovery console

Log in to the recovery console:

cd c:\Windows
move osk.exe xosk.exe
cp cmd.exe osk.exe

Exit and restart.

Logon screen

On the password login screen, press Win+U and select Start On-Screen Keyboard. A command prompt should start instead of the on-screen keyboard.

net user admin *

Enter the new password. Login with this <new-password>.

Revert

Log in to the recovery console again and restore osk.exe:

cd c:\windows
Del osk.exe
move xosk.exe osk.exe
Updated: 2026 Aug 19