Monday, April 25, 2011

Remove stale computers from WSUS

To clean up the old computer objects, use CleanStaleComputers from Windows Server Update Services API Samples and Tools.

Download and install it on the WSUS server and you'll find the tool located in %ProgramFiles%\Update Services 3.0 API Samples and Tools\CleanStaleComputers\.
Usage is pretty straight forward,  here is an example:


CleanStaleComputers.exe /DAYS:60 /DELETE:NO /PROMPT:NO


This command will move all computers that hasn't contacted the WSUS server in the last 60 days into a "Stale Computers" computer group in WSUS. That makes the task of checking the list of stale computers much easier.


No comments: