title: Specify Active Directory Domain Controller via DirectoryEntry or DirectorySearcher?
body: <p>I can specify the domain controller when I want to search through AD using this:</p>
  
  <pre><code>$principalContext  = New-Object 'System.DirectoryServices.AccountManagement.PrincipalContext'([System.DirectoryServices.AccountManagement.ContextType]::Domain, $DomainControllerIpAddress, $Container)
  </code></pre>
  
  <p>How can I specify the domain controller using a <code>DirectoryEntry</code> or <code>DirectorySearcher</code>?</p>