Pico script to remove windows password

  • Thread starter BloodyMary
  • Start date
  • Tagged users None

BloodyMary

Golden Member
Joined
December 18, 2025
Messages
49
Reaction score
440
Points
53
  • Thread Author
  • #1

Use this only on devices that you have permission to use it on. This is for educational purposes only!​

This was tested on windows 10

LED​

The led first lights up to give you some time to react. Then it flashes x number of times with x being the mode number.

  1. mode - This is in the booted usb
  2. mode - This is once windows boots
  3. mode - This is once windows is logged in

How to use​

  1. Install circuitpy on the rpi pico. You can do this simply by holding the bootsel button when plugging the rpi and then putting the .uf2 file inside the rpi pico directory (on the disk that was mounted). Note: if You installed Anything on this rpi pico previously you have to wipe it first by putting flash_nuke.uf2 into the same directory.
  2. Get a bootable ENGLISH * windows usb - You get one here
  3. copy the files from here to rpi pico ( adafruit_hid to lib)
  4. make sure to keep the var.
  5. boot to the to the windows usb
  6. plug the rpi
  7. after it's done unplug it and plug it once windows loads
  8. rewrite [user] with your username and 123 with your new password
  9. login with your new credentials
  10. plug the rpi again so that it can revert the system to it's previous state (the password will stay as the new one set)
  11. enjoy unlocked windows!
* The script relies on a US keyboard

How does this work​

  1. When you boot to the windows usb the rpi replicates an hid device (like a keyboard) and does inputs to the computer. It will try to replace sethc.exe with cmd.exe in system32. To preserve the system it also creates sethc_backup.exe in system32 to backup sethc. This allows us to execute command prompt in the login screen. This cannot work if the drive is encrypted tho as we do not have access to system32 when it's encrypted.
  2. Once windows boots we get the rpi to press shift multiple times which starts sethc.exe (sticky keys). This opens the command prompt with administrator privileges. Now the rpi types net user [username] 123. This command changes the login information for the user. This works only with non-microsoft accounts tho. If you want to retrieve data from a microsoft account you can instead type net user administrator /active:yes . This will create a new user called administrator with absolute administrator privileges. It is recommended to delete this account once you're finished. You can do so using this command: net user administrator /active:no.
  3. Once you're logged in plugging the rpi again replaces sethc.exe with sethc_backup.exe so that we can have sticky keys back again. It's possible that windows defender will popup with privilige escalation warning. This was neccessary to do the password removal. Once the rpi finishes the system is back to normal but with the new password.
 
Reactions: geek233 and zsh_R0ot
Z

zsh_R0ot

Active Member
Joined
February 19, 2026
Messages
57
Reaction score
1
Points
6
  • #2
poiuy
 
G

geek233

Active Member
Joined
November 1, 2025
Messages
89
Reaction score
0
Points
6
  • #3
ttr
 
  • Tags
    password pico remove script scripting windows windows password