Windows 7 Forums


Windows 7: Windows 7 SP1 Disk Cleanup Tool


Windows 7 SP1 Disk Cleanup Tool

How Use the Windows 7 SP1 Disk Cleanup Tool to Recover Lost Disk Space
Published 03 Nov 2010
Published by

Featured Tutorial

Windows 7 Installation - Transfer to a New Computer
Windows 7 Installation - Transfer to a New Computer

How to Transfer your Complete Windows 7 Installation to a New Computer

System Preparation Tool - Use to Customize Windows
System Preparation Tool - Use to Customize Windows

How to Use Sysprep to Customize Windows 7 and Windows 8

Clean Up Factory Bloatware
Clean Up Factory Bloatware



Restore Point - Add "Create Restore Point" to Context Menu in Windows
Restore Point - Add "Create Restore Point" to Context Menu in Windows

How to Add "Create Restore Point" to Context Menu in XP, Vista, Windows 7, and Windows 8

Troubleshooting Steps for Windows 7
Troubleshooting Steps for Windows 7



Microsoft Outlook Desktop Shortcut - Create
Microsoft Outlook Desktop Shortcut - Create

How to Create a Special Outlook Desktop (Office XP style) Shortcut
How Use the Windows 7 SP1 Disk Cleanup Tool

information   Information
This will show you how to run the Windows 7 SP1 cleanup tool to permanently remove the backed up files created during the installation of the Windows 7 SP1 to gain back more hard drive space, and remove the Service Pack for Microsoft Windows (KB976932) entry in Installed Updates.

You must be logged in as an administrator to be able to do this tutorial.

Note   Note
The Windows 7 SP1 disk cleanup tool gave me back around 1.5 GB on my hard drive. This amount may vary on your computer.

To see how much space you recovered, make a note of how much free space you have on the C:/ drive in Computer before and after you run the Windows 7 SP1 cleanup tool. Afterwards, please post and let us know how much space you have recovered.
warning   Warning
It is recommended to wait about a week after installing SP1 to see how your Windows 7 is running with SP1 installed before deleting the SP1 backups as in the tutorial below. This way if you discover a issue, you will still have the option to uninstall SP1 if need be.

Once you delete the SP1 backup files, you will no longer be able to uninstall the Windows 7 SP1 afterwards. The only option would be a clean install or custom install.






OPTION ONE
Delete Windows 7 SP1 Backup Files Using Disk Cleanup
1. Open Disk Cleanup.

2. Select the drive (ex: C: ) that your Windows 7 is installed on, and click on OK. (see screenshot below)
Name:  Step1.jpg
Views: 116146
Size:  18.7 KB
3. Click on the Clean up system files button. (see screenshot below)
Windows 7 SP1 Disk Cleanup Tool-step-2.jpg
4. If prompted by UAC, then click on Yes.

5. Select the drive (ex: C: ) that your Windows 7 is installed on, and click on OK. (see screenshot below)
Name:  Step1.jpg
Views: 116146
Size:  18.7 KB
6. Check the Service Pack Backup Files box and click on OK. (see screenshot below)
Windows 7 SP1 Disk Cleanup Tool-step3.jpg
7. Click on Delete Files. (see screenshot below)
Windows 7 SP1 Disk Cleanup Tool-step4.jpg
8. The SP1 backup files will now be deleted. You will now no longer be able to uninstall the Windows 7 SP1, but have gained around 1 GB of hard drive space back.






OPTION TWO
Delete Windows 7 SP1 Backup Files Using a Elevated Command Prompt
1. Open a elevated command prompt (Run as administrator).

2. In the elevated command prompt, copy and paste the command below and press enter. (see screenshot below)
dism /online /cleanup-image /spsuperseded /hidesp

Windows 7 SP1 Disk Cleanup Tool-cmd.jpg
3. After a few moments, you will see the The Operation completed successfully message. (see screenshot above)

4. Close the elevated command prompt. You will now no longer be able to uninstall the Windows 7 SP1, but have gained around 1 GB of hard drive space back.



OPTION THREE
Delete Windows 7 SP1 Backup Files Using a Command Prompt at Boot

NOTE: This option will also work on a slipstream Windows 7 SP1 installation at boot.
1. Open a command prompt at boot. (click on link for how)

2. To Verify the Windows 7 Drive Letter at Boot
NOTE: This needs to be done since the Windows 7 drive letter may not be C: if you have the 100 MB System Reserver partition created during installation, or if you multiboot with more than one operating system.
A) In the command prompt, type diskpart and press Enter. (see screenshot below)

B) In the command prompt, type list volume and press Enter.

C) Make note of the drive letter (ex: D ) that you have Windows 7 installed on.
NOTE: It helps to look at the drive size and label to help ID the Windows 7 partition/drive.

D) In the command prompt, type exit and press Enter.
Windows 7 SP1 Disk Cleanup Tool-slipstream-1.jpg
E) Continue on to step 3.
3. To Delete the Windows 7 SP1 Backup Files at Boot
A) In the command prompt, type the command below and press Enter. (see screenshot below)
NOTE: Substitute D: in the command below with the drive letter of your Windows 7 from step 2C above instead.
Code:
dism /image:D: /cleanup-image /spsuperseded /hidesp
Windows 7 SP1 Disk Cleanup Tool-slipstream-2.jpg
B) After a few moments, you will see the The Operation completed successfully message. (see screenshot above)

C) Close the command prompt window, and restart the computer. You will now no longer be able to uninstall the Windows 7 SP1, but have gained around 1 GB of hard drive space back.
That's it,
Shawn









Need more help? Try searching our extensive help and support site.
Loading
06 Nov 2010   #1
bagavan

Windows 8 Professional x64
 
 

you mean to say that after using this command ,once the final SP is installed it can`t be uninstalled rite?

My System SpecsSystem Spec

06 Nov 2010   #2
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hello Bagavan,

Correct. When you install the final Windows 7 SP1 and do the tutorial to delete it's backup files to save space, you will then no longer be able to uninstall the Windows 7 SP1 without having to do a clean install first.

It's a trade off to gain about 1.5 GB of HDD space back since most people do not ever plan on uninstalling a service pack anyways.
My System SpecsSystem Spec
14 Jan 2011   #3
z3r010

Windows 8 Pro
Standish, Lancashire, England
 
 

Works fine with SP1 final.
My System SpecsSystem Spec
.


14 Jan 2011   #4
sygnus21

Windows 7 Ultimate x64 SP1
Hampton VA
 
 

Is SP1 final released?
My System SpecsSystem Spec
14 Jan 2011   #5
yowanvista

Win7 Ultimate SP1 x64 / Windows 8 Pro / Android
Mauritius
 
 

Quote   Quote: Originally Posted by sygnus21 View Post
Is SP1 final released?
Yes, but not officially, you can already obtain the final version from some sources
My System SpecsSystem Spec
14 Jan 2011   #6
sygnus21

Windows 7 Ultimate x64 SP1
Hampton VA
 
 

Yeah I see. I'll wait.

Thanks.
My System SpecsSystem Spec
15 Jan 2011   #7
midgo

Windows 7 32 bit
 
 

It did not work for me and I got the following information after the attempt.

Any help appreciated.


Quote:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>dism /online /cleanup-image /spsuperseded

Deployment Image Servicing and Management tool
Version: 6.1.7600.16385

Image Version: 6.1.7601.17514

Removing backup files created during service pack installation.

Error: 0x80042302

DISM failed. No operation was performed.
For more information, review the log file.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

C:\Windows\system32>
My System SpecsSystem Spec
15 Jan 2011   #8
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
Texas
 
 

Hello Midgo,

Could you post back a copy of the contents of the C:\Windows\Logs\DISM\dism.log file? This will help us determine why it may have failed.

It's only a text file, so you should be able to open in Notepad and copy and paste the content into your post.
My System SpecsSystem Spec
16 Jan 2011   #9
xxxdannyxxx

Windows 7 Home Premium x64 SP1
England
 
 

Hi all

Can someone take a look at this cmd window ant tell me if this is correct.Im concerned that it mentions "removing ultimate edition" i have home premium.

Last edited by xxxdannyxxx; 15 Apr 2011 at 07:45 AM..
My System SpecsSystem Spec
Comment

 Windows 7 SP1 Disk Cleanup Tool problems?



Tutorial Tools



Similar help and support threads for: Windows 7 SP1 Disk Cleanup Tool
Windows 7 Tutorial Category
Solved Windows won't boot after disk cleanup during sleep General Discussion
All in one cleanup tool Performance & Maintenance
After disk cleanup, having many problems with Windows 7 Performance & Maintenance
Windows 7 Home Premium Disk Cleanup General Discussion
microsoft Patch Registration Cleanup Tool Software


All times are GMT -5. The time now is 01:46 AM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32