Active Directory Stale Computer Report
I have created a nice PowerShell script to find your stale computer objects in Active Directory. With being a SCCM Administrator it is crucial you have a healthy AD environment.
Requirements:
Quest Active Directory CMDLET
http://www.quest.com/powershell/activeroles-server.asp
Usage:
.AD_StaleComputer_Cleanup.ps1 -DC “Domain Controller” -Old “PC Not logged in for X amount days” -Path “Path of the folder you want the report saved too”
Example:
.AD_StaleComputer_Cleanup.ps1 -DC “DCServer01” -Old 90 -Path “C:PathofFolder”
![]() |
AD_StaleComputer_Cleanup.ps1 v1.0.0.1 |