System Grab Bag

View all TLDR pages from Linux (or from all pages)

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.
  • List all users in the SAM file:
    chntpw -l {{path/to/sam_file}}
  • Edit [u]ser interactively:
    chntpw -u {{username}} {{path/to/sam_file}}
  • Use chntpw [i]nteractively:
    chntpw -i {{path/to/sam_file}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.