title: Query Active Directory for all accounts with expiry date set
body: <p>I'm trying to run a script in order to have a list of Users with the expiry date set, So where expiry date Doesn't equal "never" (from what i understand of AD)</p>
  
  <p>I'm doing it for all disabled users with the following code</p>
  
  <pre><code>dsquery user -limit 0 -disabled 
  </code></pre>
  
  <p>I understand there's some filters you can use with dsquery to get this?</p>
  
  <p>edit: i know that i could look for all users. get the expire date attribute and filter after that. but i assume anything built into dsquery would be more efficient.</p>
  
  <p>Thanks for any assistance.</p>