Hi @kardon ,
if you like to get the users from a different domain (in the same forest) the query should be send to a domain controller that is a global catalog server as well.
You are running the command on a computer that is member in test.local
?
You can give it a try with this:
$PSDefaultParameterValues = @{
"*-AD*:Server" = "test.local:3268"
}
Get-ADUser -filter -searchbase "DC=location1,DC=test,DC=local"
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten