# Which domain contoller is polled in Powershell query

**URL:** <https://forums.powershell.org/t/which-domain-contoller-is-polled-in-powershell-query/1338>\
**Category:** PowerShell Help\
**Created:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/which-domain-contoller-is-polled-in-powershell-query/1338 "2011-12-31T18:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![archives](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@archives](https://forums.powershell.org/u/archives)\
**Post date:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/which-domain-contoller-is-polled-in-powershell-query/1338/1 "2011-12-31T18:30:00Z")

</div>

by Christopher.Ellis at 2013-02-20 09:25:46

> Within powershell - How can I determine which Active Directory Domain Controller is being polled for information?  
>   
> for example C:\> get-aduser christopher.ellis  
>   
> DistinguishedName : CN=Christopher.Ellis,OU=Head Office - 2540  
> Enabled : True  
> GivenName : Christopher  
> Name : Christopher.Ellis  
> ObjectClass : user  
> ObjectGUID : 07ce018b-2fa5-4bf6-90df-3f7aa2818981  
> SamAccountName : Christopher.Ellis  
> SID : S-1-5-21-1140152784-10511339-5522801-6916  
> Surname : Ellis  
> UserPrincipalName : [Christopher.Ellis@internal.XXXXX.ca](mailto:Christopher.Ellis@internal.XXXXX.ca)  
>   
> 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"  
>   
>   
> Directory server values:  
> Fully qualified directory server name  
> Example: [corp-DC12.corp.contoso.com](http://corp-DC12.corp.contoso.com)  
> NetBIOS name  
> Example: corp-DC12  
> Fully qualified directory server name and port  
> Example: [corp-DC12.corp.contoso.com:3268](http://corp-DC12.corp.contoso.com:3268)  
> [/quote]  
> [http://technet.microsoft.com/en-us/libr … 17241.aspx](http://technet.microsoft.com/en-us/library/ee617241.aspx)  
>   
> I don’t know how you’d identify which server you’re using by default though.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:57pm UTC](https://forums.powershell.org/t/which-domain-contoller-is-polled-in-powershell-query/1338/2 "2024-05-16T20:57:57Z")

</div>


