GPOs
General
Security settings
Registry-based policy settings
GPP like start/shutdown/log-on/logff script settings
Software installation
Abused for privesc, backdoors, persistence
Display RSoP Summary Data
gpresult /R
# AD Module
Get-GPResultantSetOfPolicy -ReportType Html -Path C:\Users\Administrator\report.htmlGet List of GPOs in Current Domain
# AD Module
Get-GPO -All
# PowerView
Get-NetGPO
Get-NetGPO | Select displayname
Get-NetGPO -ComputerName ws01.lab.local
Get-DomainGPO -ComputerIdentity windows1.testlab.localGet GPO(s) Which Use Restricted Groups or groups.xml for Interesting Users
Get-NetGPOGroupGet Users Which Are in a Local Group of a Machine Using GPO
Find-GPOComputerAdmin -ComputerName ws01.lab.localGet Machines where the given User is a Member of a Specific Group
Find-GPOLocation -UserName user -VerboseEnumerate what Machines that a Particular User/Group Identity Has Local Admin Rights to
# Get-DomainGPOUserLocalGroupMapping == old Find-GPOLocation
Get-DomainGPOUserLocalGroupMapping -Identity <User/Group>Enumerate what Machines that a given User in the Specified Domain Has RDP Access Rights to
Get-DomainGPOUserLocalGroupMapping -Identity <USER> -Domain <DOMAIN> -LocalGroup RDPExport a CSV of All GPO Mappings
Get-DomainGPOUserLocalGroupMapping | %{$_.computers = $_.computers -join ", "; $_} | Export-CSV -NoTypeInformation gpo_map.csvLast updated