title: Using Get-AzureAdUser is there a way to pull back all users from source "windows server ad"?
body: <p>I have a directory that has about 200k users in it. I need to pull back all the users that came from on-prem AD. This of course would exclude the multiple source guest users. I have to use source because not all users have a usertype.</p>
  
  <p>If there was a way to search Department not equal to null that would work as well, but it doesn't appear to be part of the odata filter standard.</p>
  
  <pre><code>Get-AzureADUser -Filter "Department eq ''"  | select DisplayName,`
      UserPrincipalName,Mail,creationType,AccountEnabled,Department
  </code></pre>