Files
docs/scripts/powershell/reporting/inactive-computers.md
Nicole Rappe 59909dd12a
All checks were successful
Automatic Documentation Deployment / Sync Docs to https://kb.bunny-lab.io (push) Successful in 6s
revert 51cdd1fdb6
revert Fixed Formatting of Files
2026-04-26 17:22:05 -06:00

267 B

tags
tags
PowerShell
Reporting
Scripting
$DaysInactive = 30
$time = (Get-Date).Adddays(-($DaysInactive))
Get-ADComputer -Filter {LastLogonTimeStamp -lt $time} -ResultPageSize 2000 -resultSetSize $null -Properties Name | Select Name