How to clean winsxs - Remove backup file created during Service Pack Installation


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

Deployment Image Servicing and Management tool
Version: 6.1.7600.16385

Image Version: 6.1.7600.16385


/Cleanup-Image /RevertPendingActions

  WARNING! This operation will revert pending actions from previous servicing
  operations. It should be used for recovery operations only. This command
  is not supported against an online image.

    Example:
      DISM.exe /Image:C:\test\offline /Cleanup-Image /RevertPendingActions

/Cleanup-Image /spsuperseded [/hidesp]

  WARNING! The service pack can't be uninstalled after this operation is
  completed. This operation will remove backup files created during service
  pack installation. Use /hidesp switch to hide the service pack from Installed
  Updates.

    Example:
      DISM.exe /Image:C:\test\offline /Cleanup-Image /spsuperseded /hidesp



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

Deployment Image Servicing and Management tool
Version: 6.1.7600.16385

Image Version: 6.1.7600.16385

Removing backup files created during service pack installation.
Removing package Microsoft-Windows-UltimateEdition~31bf3856ad364e35~amd64~~6.1.7
600.16385
[==========================100.0%==========================]
Service Pack Cleanup operation completed.
The operation completed successfully.
Restart Windows to complete this operation.
Do you want to restart the computer now (Y/N)?

clean winsxs

Comments