Answers for "inactive users"

0

inactive users

Get-LocalUser | Where-Object {$_.Lastlogon -le (Get-Date).AddDays(-30)} | Select-Object Name,Enabled,SID,Lastlogon | Format-List
Posted by: Guest on September-24-2021

Browse Popular Code Answers by Language