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?
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?