Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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 by Brink
03 Nov 2010
Default Windows 7 SP1 Disk Cleanup Tool

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: 145927
Size:  18.7 KB
3. Click on the Clean up system files button. (see screenshot below)
Name:  Step-2.jpg
Views: 21490
Size:  76.3 KB
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: 145927
Size:  18.7 KB
6. Check the Service Pack Backup Files box and click on OK. (see screenshot below)
Name:  Step3.jpg
Views: 21369
Size:  69.3 KB
7. Click on Delete Files. (see screenshot below)
Name:  Step4.jpg
Views: 21218
Size:  23.5 KB
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

Name:  CMD.jpg
Views: 26171
Size:  61.3 KB
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







Published by
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
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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

 

Works fine with SP1 final.
My System SpecsSystem Spec
.


14 Jan 2011   #4
sygnus21

Windows 8.1 Pro
 
 

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

Windows 8.1 Pro x64
 
 

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 8.1 Pro
 
 

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
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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
 
 

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.
My System SpecsSystem Spec
Comment

 Windows 7 SP1 Disk Cleanup Tool




Tutorial Tools



Similar help and support threads for2: Windows 7 SP1 Disk Cleanup Tool
Windows 7 Tutorial Category
What is the best registry cleanup tool for win7? Performance & Maintenance
disk cleanup? Performance & Maintenance
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

Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 05:00 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

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 33