title: Get-ADUser - extracting inactive and account that never logon
body: <p>I am writing a script to extract accounts that are inactive: not logon for more than 1 months or never logon. I have problem on extracting accounts that never logon.</p>
  
  <p>Below is my script and $NotLogonCutoff is today -30 days:</p>
  
  <pre><code>$inactUsrdraft += @(Get-ADUser -SearchBase $ou -Filter 'PasswordNeverExpires -eq $False -and LastLogonTimeStamp -le $NotLogonCutoff' -Properties Name,SamAccountName,LastLogonTimeStamp,Description,passwordneverexpires,canonicalName | Select Name,SamAccountName,@{N='LastLogonTimeStamp'; E={[DateTime]::FromFileTime($_.LastLogonTimeStamp)}},Description,passwordneverexpires,canonicalName | Sort Name)
  </code></pre>
  
  <p>I notice it doesn't extract user who never logon. But when I remove the "-and LastLogonTimeStamp -le $NotLogonCutoff" for investigation, the user that never logon have LastLogonTimeStamp "01/01/1601", I am not sure why this date is not LE than my date. </p>
  
  <p>Could someone able to provide some assistants?</p>