title: How To search for user across all domains?
body: <p>I am writing a Powershell script to get password expiry for specific set of users. These users belongs to different domains (across the world) in our org.</p>
  
  <p>I use <code>Get-Aduser</code> to get the do this. The script works only for users where the script is run from. So if the script is run from let's say US, the <code>Get-AdUser</code> finds only users from US.</p>
  
  <p>How can I search across all domains?</p>
  
  <p>I tried this</p>
  
  <pre><code>Get-AdUser -Server &lt;GlobalCatalog&gt; [...]
  </code></pre>
  
  <p>This does have the same result without <code>-Server</code></p>