Deleting Uninstall Files Created on SUS Clients

Goto the SUS Home Page

 

We use SUS for over 30 servers and around 300 workstations, so far it's going OK touch wood. When the client downloads and installs updates it creates a backup folder in 'c:\winnt'. The folder is compressed, hidden and called '$NtUninstallKB824105$' or something similar.

The problem is that these backup folders are taking up too much space and if this continues it'll probably fill up the C: drive and eventually won't boot.

There is a procedure for deleting these uninstall folders (simply delete the folders, then delete the uninstall keys in the registry) Is it correct?

Is there an easier way of doing this because on 30 more servers and 300 odd workstations it's going to take me some time?

Contributed By: Torgeir Bakken (MVP)
If this is an Active Directory domain:

You can do it in a computer startup script (with a GPO) that runs as part of the boot up process (before the user logs in). It runs under the system context and has admin rights.

If this is a NT4 domain, and the users are local admins, you can do this in the users logon script as well.

Here is a vbscript that removes the uninstall parts for the KB824146 hotfix:

Set oShell = CreateObject("WScript.Shell")
oShell.Run "%ComSpec% /C RD /S /Q %windir%\$NtUninstallKB824146$", 0, True
On Error Resume Next
oShell.RegDelete _
   "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KB824146\"
 

© FAQShop.com 2003 - 2008

Goto the SUS Home Page

Email the Author