Quantcast
Channel: Recent Edits
Viewing all articles
Browse latest Browse all 12198

Mistake

$
0
0
Just spotted that the code has a mistake in it, which means that the same DC is queried every timeYou need to change $user = Get-ADUser $userName | Get-ADObject -Properties lastLogon to $user = Get-ADUser $userName | Get-ADObject -Server $hostname -Properties lastLogonThis will query each of the DC in turn

Viewing all articles
Browse latest Browse all 12198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>