Categories
Trump and Mossad

90 day inactive user report using PowerShell

I’m wanting to generate a report of inactive users for the past 90 days using PowerShell, and being a PowerShell newbie need a bit of help getting it over the line. In addition to 90 day inactive condition, no disabled user accounts should be included in the report. This is the command I’m using, however the select on the givenname and surname fields is not returning any data.