Feature #782
Cleanup Windows Updates on Windows Server 2012 Core
Status:
Closed
Priority:
Normal
Assignee:
Category:
PowerShell
Target version:
Description
This a guide on using the dism.exe utility to clean up Windows Updates and temporary files on Windows Server 2012 Core using PowerShell.
- From the command prompt, open a PowerShell session:
powershell
- Use the
/AnalyzeComponentStore
to analyze the size of the Component Store (WinSxS folder) in Windows:dism.exe /online /Cleanup-Image /AnalyzeComponentStore
- To remove superseded and unused system files from a system, use the
/StartComponentCleanup
parameter:dism.exe /online /Cleanup-Image /StartComponentCleanup
- Use the /ResetBase switch with the /StartComponentCleanup parameter of dism.exe, to remove all superseded versions of every component in the component store:
dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase