What domain controller is being used for NTAccount.Translate()?

Viewed 58

Due to our current infrastructure, a user can end up utilizing different domain controllers after logging into their computer making $env:LOGONSERVER and nltest commands unreliable for determining which domain controller will be used for the translate method.

Is there a way to determine which DC will be used for the translate method?

1 Answers

I found that Get-ADDomainController -Discover -Service ADWS -ForceDiscover seems to do what I needed.

Related