Skip to content

Instantly share code, notes, and snippets.

@jkullick
Last active February 12, 2024 17:55
Show Gist options
  • Save jkullick/56c56c68a4c2967acb02abed1c1a3974 to your computer and use it in GitHub Desktop.
Save jkullick/56c56c68a4c2967acb02abed1c1a3974 to your computer and use it in GitHub Desktop.
Reset Windows Password with chntpw on Linux
  1. Install required Packages:
apt-get install chntpw ntfs-3g
  1. Mount Windows Partition:
mount -t ntfs /dev/sda2 /mnt
  1. Change Directory:
cd /mnt/WINDOWS/system32/config
  1. List available Users:
chntpw -l SAM
  1. Select User:
chntpw -u $USERNAME SAM 
  1. Select an Option from the Menu.

  2. Unmount Windows Partition & Reboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment