Can I direct powershell to query a specific Domain controller? If so – how?

by AlexBrassington at 2013-02-20 10:57:00

To pick one you can use the Server parameter:

[quote]The default value for the Server parameter is determined by one of the following methods in the order that they are listed:-By using Server value from objects passed through the pipeline.-By using the server information associated with the Active Directory PowerShell provider drive, when running under that drive.-By using the domain of the computer running Powershell.

The following example shows how to specify a full qualified domain name as the parameter value.-Server "corp.contoso.com"