GP And OU Enumeration

Group Policy provides the ability to manage configuration and changes easily and centrally in AD.

Allows configuration of, Security settings, Registry-based policy settings, Group policy preferences like startup/shutdown/log-on/logoff scripts settings, Software installation, GPO can be abused for various attacks like privesc, backdoors, persistence etc.

GPO Enumeration

PowerView

Get-NetGPO
Get-NetGPO | Select displayname
Get-NetGPO -ComputerName dcorpstudent1.dollarcorp.moneycorp.local

#Get GPO(s) which use Restricted Groups or groups.xml for interesting
users
Get-NetGPOGroup


#Get users which are in a local group of a machine using GPO
Find-GPOComputerAdmin –Computername dcorpstudent1.dollarcorp.moneycorp.local



#Get machines where the given user is member of a specific group
Find-GPOLocation -UserName student1 -Verbose 

ActiveDirectoryPowerShell module

OU Enumeration

PowerView

ActiveDirectoryPowerShell module

Last updated

Was this helpful?