PowerShell Get-ADUser and the -Server parameter
anyone know how get-aduser cmdlet selects domain controller if -server parameter not specified? don't want scripts connecting dc on other side of globe, i'd rather not specify dc if don't need to, since dc decommissioned day. add logic scripts lookup dcs in current site, don't know if need that. i'm wondering if get-aduser automatically selects 1 in current ad site, or if randomly chooses 1 round robin dns query domain name.
also, other monitoring network packets or dc logs, there easy way see dc ad cmdlets connect to? tried -verbose , -debug didn't seem anything.
thanks
Windows Server > Directory Services
Comments
Post a Comment