Showing posts with label AD Clean Up. Show all posts
Showing posts with label AD Clean Up. Show all posts

Monday, August 27, 2012

Find AD Stale Computers

Active Directory Stale Computer Report

I have created a nice PowerShell script to find your stale / outdated objects in Active Directory.  With being a SCCM Administrator it is crucial you have a healthy AD environment.  

Requirements:

Quest Active Directory CMDLET

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:\Path\of\Folder"


AD_StaleComputer_Cleanup.ps1 v1.0.0.1