Edit [u]ser interactively

chntpw

  • A utility that can edit windows registry, reset user password, promote users to administrator by modifying the Windows SAM.
    Boot target machine with live cd like Kali Linux and run with elevated privileges.
    More information: <http://pogostick.net/~pnh/ntpasswd>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

chntpw -u {{username}} {{path/to/sam_file}}

click the source code to copy install chntpw on any operating system with command-not-found.com