This script retrieves the SAM and SYSTEM files, using a reg command. That's all. Then, you will be able to extract the password using OphCrack, Hashcat... It requests admin elevation, thanks to this code: https://github.com/cyberponk/psubst/blob/master/psubst.bat
adamff-dev/SAM_Retrieve
This script retrieves the SAM and SYSTEM files, using the reg command.
Batchfile