Remove KBUninstall

Rating: No reviews yet
Downloads: 1020
Released: Sep 20, 2010
Updated: Sep 21, 2010 by Bitzie
Dev status: Stable Help Icon

Recommended Download

Application CleanupKBUninstall.vbs
application, 9K, uploaded Sep 21, 2010 - 842 downloads

Other Available Downloads

Source Code CleanupKBuninstall.txt
source code, 9K, uploaded Sep 21, 2010 - 178 downloads

Release Notes

"Our script is now in production and we were able to delete around 45GB. This will save us 4TB of tape writes annually.

The script connects to AD, grabs a list of all machines in the Servers OU, then goes through each one, first ensuring that it’s online, then checking that the hostname that the server responds with is the machine you’re trying to target (that’s also good for checking that WMI is working. We then find out the location of the windows directory, enumerate all directories containing the string KBUninstall, then delete them if they are older than the deletionthreshold (we chose 60 days).

Load it up in a script editor that is VBScript aware and shows colours so that you can get a better idea of the comments. Obviously, test it before running it (even though I’ve commented out the line that actually does the deletion. When you do run it, use cscript.exe scriptname.vbs otherwise you’ll get a whole load of popups.

I hope this helps somebody."

Reviews for this release

No reviews yet for this release.