My organizational units and sub organizational units are on the order below:
I have users on "OrganizationUnitTest" which I am NOT interested.
I have users in the sub organizational unit called "Users" which I am interested.
I have users in the sub organizational unit called "Disabled Users" which I am NOT interested.
I need to get users only from sub organizational unit "Users". Not "OrganizationalUnitTest" neither users in the sub sub organizational unit "Disabled Users"
When I run the following command I get users from "Users" but also from "Disabled Users".
Get-User –OrganizationalUnit "OU=Users,OU=OrganizationU
How can I get users only from the sub organizational unit "Users"?