Closed Meatballs1 closed 8 years ago
Ah no :) Just couldn't find it
There's also now an option in Get-NetUser and Get-NetComputer which allows you to specify the ADSpath/OU/etc. for querying users/computers from particular OUs https://github.com/PowerShellEmpire/PowerTools/blob/5b8f4acf1ec51da40e3ffda5599668dbc13b01a2/PowerView/powerview.ps1#L2559 . Still needs some more testing, but seems to work nicely when combined with Get-NetGuidOU (https://github.com/PowerShellEmpire/PowerTools/blob/5b8f4acf1ec51da40e3ffda5599668dbc13b01a2/PowerView/powerview.ps1#L2855) to pull OUs that GPP is applied to, and then extracting the machines from that particular OU easily :)
It would also be handy for Get-NetGroup
as often see things like OU=Admins which contain the more interesting groups :)
Although I expect if you refactor more methods with the Get-DomainSearcher
helper this parameter can be supported by default?
Something along the lines of: