nixos-config/images/windows-rescue
2023-07-01 00:20:03 +02:00
..
config.nix reformat 2021-11-01 19:30:41 +01:00
README.md global stylix and proper oh-my-posh 2023-07-01 00:20:03 +02:00

To Fix Windows Issues

reset password

  • use sfdisk -l to list partitions
  • find the partition which holds Windows/System32/config
  • mount it mkdir -p /media/sda2; mount /dev/sda2 /media/sda2
  • cd /media/sda2/Windows/System32/config
  • list SAM database chntpw -l SAM
  • edit SAM database chntpw -i SAM
  • reboot

more details here.