Windows OS Hub
  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange

 Windows OS Hub / Windows 7 / How to clean-up system disk in Windows 7 SP1 by deprecated system updates deleting

January 31, 2014 Windows 7

How to clean-up system disk in Windows 7 SP1 by deprecated system updates deleting

Today we will talk about one update which was anticipated by Windows 7 fans for a very long time. The name of the game is KB2852386 (http://support.microsoft.com/kb/2852386) update which allows to delete deprecated updates (updates which were replaced with the newer ones) with a help of a new parameter of Windows 7 default disk cleaning manager – Windows Cleanup Tool (cleanmgr.exe). This update is not compulsory, it can be installed via Windows Update or downloaded manually from Microsoft website.

[accordion]
[tab title=”Contents of this article”]

Contents:
  • Technical requirements for KB2852386 update installation
  • How to clean up WinSxS folder by deleting deprecated updates
  • How to automate WinSxS folder cleaning up

[/tab]
[/accordion]

It is to be recalled that in Windows 7  in case of any system update installation system files are replaced with newer ones and their older versions are saved in WinSxS folder. (C:\Windows\WinSxS). As a result any system update may be deleted safely at any time. However with installation of new updates such attitude will lead to apparent WinSxS catalogue size increase (it turns out that the older the system and the larger the quantity of updates the bigger is the size of WinSxS folder) of course it`s a problem for users, especially for those who are SSD disks or disks with small load partition owners. Formerly, there was no optional deprecated update files deleting utility in Windows 7 that’s why  to decrease WinSxS folder size one had to use different tricks.

Tip. We have already mentioned the problem of WinSxS folder in Windows on this website. You can also get some useful information from this article.

Note It was possible to delete dead files which had left after SP1 installation in Windows 7/2008. It was possible due to the command of our favourite DISM utility:

dism /online /cleanup-image /spsuperseded

dism /online /cleanup-image /spsuperseded

It’s normal that after the execution of this command it will become impossible to roll back Windows 7 SP 1 installation.

Now thanks to updated version of Windows 7 cleanup manager you can delete deprecated Windows updates, this will allow to decrease the size of WinSxS folder significantly.

Technical requirements for KB2852386 update installation

  1. The update is created only for Windows 7 SP 1
  2. If you download the update from Microsoft website on your own initiative (there is a link at the beginning of this article) you will be asked to install Windows validation verification utility(Genuine Windows Validation). In case of the update installation through Windows Update manual validation is not necessary .

How to clean up WinSxS folder by deleting deprecated updates

  1. Download and install update KB 2852386
  2. Launch Cleanup Manager with administrative privilege by typing the following in command line:
    cleanmgr

    cleanmgr

  3. Select the drive on which Windows 7 is installed (usually it`s drive C:\)KB2852386 new disk cleanup option in windows 7
  4. Press “Clean up system files” buttonwindows update cleanup windows7
  5. After that system scanning is started (Scanning: Windows Update Cleanup) and the range of options which were unavailable during the first start would appear in the list.
  6. Check Windows Update Cleanup option in the window that will appear. The utility will show the approximate space size which will be available after deleting of deprecated updates. In our example approximately 4 Gb will be available on system drive.
    Note. Windows Update Cleanup option is available only if Disk Cleanup manager finds Windows 7 updates which are no longer needed and can be deleted. 
    delete old updates in windows 7
  7. Press Ok and the system will start deletion of unused files (usually this process takes quite a long time).
  8. After the end of cleaning up process reset the system. During system downloading the window with message “Cleaning up. Do not turn off your computer” may appear.Cleaning up. Do not turn off your computer windows7
Note: It`s important to understand that after performance of cleaning up process with a help of this Manager it will be impossible to cancel the installation of updates which replaced the previous ones.

How to automate WinSxS folder cleaning up

In case when it is necessary to perform deletion of Windows 7 unused updates on plenty of PCs at the same time (of course nobody will run from one PC to another, performing all these operations manually!) it’s necessary to use simple automation.

To make this we should make certain changes in registry and start cleaning up command according to the schedule.

It is necessary to add a parameter of DWORD type with StateFlags0015 name to the registry (generally the last two figures can be any figures from 0 to 65535, it’s important to remember them because we will use them later on) and value 2 in registry branch:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Update Cleanup
 Tip. You can make above mentioned changes in the registry for example with a help of group policies (logon script, GPP etc).

The last thing to do, is to perform the following command by any automation means (for example  with a help of task scheduler, at , SCCM or logon script):

cleanmgr /sagerun:15

cleanmgr /sagerun:15

The above mentioned command will enable automated deletion of deprecated Windiws 7 updates and will delete unused files from WinSxS catalogue.

  Some tips.

  1. How to reduce the size of the WinSxS folder in Windows 8
  2. Compress WinSxS Folder in Windows 8

0 comment
0
Facebook Twitter Google + Pinterest
previous post
Windows 8.1 and Windows Server 2012 R2 KMS-activation
next post
How to delete default database in Exchange 2010/2013

Related Reading

How to Reduce Windows.edb Huge File Size?

October 19, 2020

Managing System Reserved Partition in Windows 10

October 9, 2020

How to Restore Deleted EFI System Partition in...

July 29, 2020

How to Clear RDP Connections History in Windows?

June 9, 2020

How to Create a UEFI Bootable USB Drive...

June 2, 2020

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange
  • Windows 10
  • Windows 8
  • Windows 7
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2008 R2
  • PowerShell
  • VMWare
  • MS Office

Recent Posts

  • Accessing USB Flash Drive from VMWare ESXi

    February 26, 2021
  • How to Sign a PowerShell Script (PS1) with a Code Signing Certificate?

    February 25, 2021
  • Change the Default Port Number (TCP/1433) for a MS SQL Server Instance

    February 24, 2021
  • How to Shadow (Remote Control) a User’s RDP session on RDS Windows Server 2016/2019?

    February 22, 2021
  • Configuring PowerShell Script Execution Policy

    February 18, 2021
  • Configuring Proxy Settings on Windows Using Group Policy Preferences

    February 17, 2021
  • Updating Group Policy Settings on Windows Domain Computers

    February 16, 2021
  • Managing Administrative Shares (Admin$, IPC$, C$, D$) in Windows 10

    February 11, 2021
  • Packet Monitor (PktMon) – Built-in Packet Sniffer in Windows 10

    February 10, 2021
  • Fixing “Winload.efi is Missing or Contains Errors” in Windows 10

    February 5, 2021

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • How Windows Determines That the File Has Been Downloaded from the Internet
  • Installation of Windows 7 or Windows 8 on a Virtual Hard Disk
  • WMI Troubleshooting
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top