Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.2.1
-
None
Description
Windows service pack files are not removed by the clean_hard_drive subroutine in Windows.pm. They are also not removed by cleanmgr.exe. This causes images to be larger than necessary. The files are normally left on the computer by the service pack installer so that the service pack can be uninstalled if necessary.
For Windows 7 and 2008, the following command can be called to remove the files:
dism.exe /online /cleanup-image /spsuperseded
Add a call to this utility to clean_hard_drive.