When looking up an account using net user jsmith /domain it will display all the current info about a user and it's password. When I look it up using powershell with Get-ADUser , the information is not accurate. I am guessing this is because they are pointing to a different domain controller, and one did not catch up yet?
Question is: What domain controller is net user using? So that I may make Get-ADUser use the same one.
Better yet, how can I find the fastest domain controller?
net userwould be using the domain controller that you would see from the commandset logonserverorset logfor short. There is not fastest domain controller really. All depends on where the initial change is made and the deisng of your replication sitesset logshould tell you that.Setin powershell is an alias forSet-Variable. In PowerShell$env:LOGONSERVERwould be a better fit. Didnt occur to me to suggest it at first