I have the directory structure
test.com
--Hosting
----ParentCompany
------ChildCompany1
--------SubChildCompany1
----------Users <==== Trying to get users from here
----------Groups
----------Workstations
--------Users
--------Groups
--------Workstations
I am using the command
Get-ADUser -Filter * -Properties * -server <servername> -SearchBase "OU=Users,OU=SubChildCompany1,OU=ChildCompany1,OU=ParentCompany,OU=Hosting,DC=test,DC=com"
For some reason this command is unable to get any user objects out of the nested Users ou under SubChildCompany1. If I do the same search but only drill down to the ChildCompany1 Users OU, I can get all users in that container? I know I could refactor the schema of the directory but at this point that is not an option, so I was wonder if anyone else has seen this behavior? Thanks.