title: Detect if User Must Reset Password In Active Directory Using C#
body: <p>In Active Directory, if a user's account is disabled and then enabled, by default, the user must change their password on first login. I am struggling to be able to detect this programmaticly using C#? Is there a property that is set or something along those lines if a user must reset their property?</p>
  
  <p>Say I have a <code>DirecotryEntry</code> object pointing to a user:</p>
  
  <pre><code>DirectoryEntry user = ...
  </code></pre>
  
  <p>Is there a property that I can use:</p>
  
  <pre><code>user.Properties[someProperty];
  </code></pre>