😸List OUs,Computers in OU, GPOs
In this section, we will enumerate the following for the dollarcorp domain: List all the OUs, List all the computers in the StudentMachines OU. List the GPOs and Enumerate GPO applied on the StudentMachines OU.
We start by loading PowerView.ps1
If we want to list all the OUs:
If we want to be a bit more slick, we can get only the name of the OUs ->
Now we want to target very specific stuff, let's go and fetch all the computers in a specific OU ->
Now if we want to enumerate the GPOs
If for some reason we needed to list the GPOs on the StudenMachines OU, we would need to enumerate the gplink attribute with the following command ->
Then we can use this information for the following command ->
Since the length for the GUIDs are static, we can do those 2 commands and become a one-liner master just like this ->
Last updated