Obj 2 Enumeration
Task - Enumerate OU's and GPO's
Enumeration Cont.
This is using PowerView.ps1 and AMSI has already been bypassed
List all Domain OU's
Get-DomainOUList just the names of the OU's
Get-DomainOU | select -ExpandProperty nameList all computers in the StudentMachines OU
(Get-DomainOU -Identity StudentMachines).distinguishedname | %{Get-DomainComputer -SearchBase $_} | select nameList all the GPO's
Get-DomainGPOList GPO applied to StudentMachines OU
(Get-DomainOU -Identity StudentMachines).gplinkGet-DomainGPO -Identity '{3E04167E-C2B6-4A9A-8FB7-C811158DC97C}'Last updated