title: Powershell <= v2 Get-Computer that authenticated in the last two months
body: <p>The computers need to be not supported anymore (that's covered) but also need to have authenticated with the Domain in the past two months. I have found the function <code>Get-Date</code> but that's supported from v5 and I need at most v2.</p>
  
  <pre><code>Get-ADComputer `
  -Filter {(OperatingSystemVersion -le "5.2") -or (OperatingSystemVersion -notlike "*")} `
  -Properties *
  </code></pre>
  
  <p>I have found a blogpost about Get-Date from 2010 so it can't be v5. If I look at technet it says v5. Now I'm not sure from which version it's supported.</p>
  
  <p>I was hoping that the following would work <code>((LastLogonDate) -ge ((Get-Date).AddDays(-60)))</code></p>