Basically what I want is all of the computers that have not authenticated in the last 30 days in a specific OU. This following command works but is not exactly what I want.
Search-ADAccount-AccountInactive-ComputersOnly-SearchBase"OU=Test,DC=contoso,dc=com"-TimeSpan90.00:00:00|Format-TableName,ObjectClass-A
however, I would like the timestamp to show up as well and export it to excel. Anyone has any ideas?
I appreciate the help