Skip to content

Latest commit

 

History

History
118 lines (71 loc) · 2.36 KB

l02-GPOEnum.md

File metadata and controls

118 lines (71 loc) · 2.36 KB

Hands-On 2: GPO Enumeration


Tasks

Enumerate following for the us.techcorp.local domain:

  • Restricted Groups from GPO
  • Membership of the restricted groups
  • List all the OUs
  • List all the computers in the Students OU.
  • List the GPOs
  • Enumerate GPO applied on the Students OU.

Enumerate Restricted Groups from GPO

Use PowerView:

Get-DomainGPOLocalGroup

picture 20



Enumerate Membership of the restricted groups

Get-DomainGroupMember us\machineadmins

picture 21



List all the OUs

Use PowerView:

Get-DomainOU | Select DistinguishedName

picture 22



List all the computers in the Students OU

(Get-DomainOU -Identity 'OU=Students,DC=us,DC=techcorp,DC=local').distinguishedname | %{Get-DomainComputer -SearchBase $_} | Select dnshostname

picture 23



List the GPOs

Get-DomainGPO

picture 24



Enumerate GPO applied on the Students OU

First get the gplink attribute of the Student OU:

Get-DomainOU | Where-Object {$_.name -Like "*Student*"}

picture 26

  • {FCE16496-C744-4E46-AC89-2D01D76EAD68}

Then list the GPO applied on the Students OU:

Get-DomainGPO -Identity '{FCE16496-C744-4E46-AC89-2D01D76EAD68}'

picture 27