Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Get-ADDomainController use the wrong CD

$
0
0

Hello!

Sorry for my bad english :)

i've asked in an other community but they can't helped me.

We have several domaincontroller in different subnets.

I wanted to interrogate data with ad-cmdlets.

My query is:

 

Get-ADComputer -LDAPFilter  "(name=Computer)" -SearchBase "OU=Germany,OU=x,DC=x,DC=local"

 

Computer belongs to DC0 but it connects automatically with DC1 in an other subnet

When i add "-server" and the right DC then i receive also the same information but from the right DC.

 

Why connects it automatically with the wrong domaincontroller in an other subnet?

 

I hope it is to be understood and someone can help me.

best regards from germany


Viewing all articles
Browse latest Browse all 6937

Trending Articles