Some times we may wanted to get list of users last logon time. This command helps you the get list of all the users who lastlogontimestamp is older then 30 days or 60 days
Get-QADUser -sizeLimit 0 | where {$_.lastlogontimestamp -lt (get-date).AddDays(-30)} | Select NAme,lastlogontimestamp
Get-QADUser -sizeLimit 0 | where {$_.lastlogontimestamp -lt (get-date).AddDays(-60)} | Select NAme,lastlogontimestamp
Regards,Krishnahttp://smtpport25.wordpress.com