Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Get-AdObject complex filters

$
0
0

Hi all,

here is my command to get all ad users in a specified OU

Get-ADObject -Filter {ObjectClass -eq "user"} -searchbase $CustomOU

But i need to get all users from entire domain with a filter like "not in these OUs"

Any idea?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>