


Using the /StartComponentCleanup parameter of Dism.exe on Windows 10 gives you similar results to running the StartComponentCleanup task in Task Scheduler, except previous versions of updated components will be immediately deleted (without a 30 day grace period) and you will not have a 1-hour timeout limitation.įrom an elevated command prompt, type the following: Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase switch with /StartComponentCleanup parameter The /StartComponentCleanup parameter is supported on Windows 8, Windows Server 2012 and up.
CLEAN DISK 2012 CODE
You can start this task from the command line: schtasks.exe /Run /TN "\Microsoft\Windows\Servicing\StartComponentCleanup" Code language: JavaScript ( javascript ) There is also a registered scheduled task called StartComponentCleanup. If you enjoyed this, you might also enjoy the following post summing up 5 extra ways to clean up disk space in Windows Server!ĭism.exe /online /Cleanup-Image /StartComponentCleanup Throughout this article, I assume you’ll read help options, just add /?, like: dism.exe /Online /Cleanup-Image /?. The Dism.exe /Online /Cleanup-Image has a few extra parameters (or switches): The /Cleanup-Image parameter of dism.exe provides advanced users more options to further reduce the size of the WinSxS folder.
CLEAN DISK 2012 UPDATE
Image via Flickr by Pabak Sarkarĭism disk cleanup: Deployment Image Servicing and Management ( DISM) is a command-line tool that allows you to install, uninstall, configure, and update Windows features, packages, drivers, and international settings. Let’s clean up WinSxS! Regain used disk space withĭeployment Image Servicing and Management (DISM) Clean-up rituals after the parade. And, any updates to those files are also held within the component store as the updates are installed (source: KB 2795190 – and do read Manage the Component Store). The Windows Component Store contains all the files that are required for a Windows installation. It’s the location for Windows Component Store files. The WinSxS folder is located in the Windows folder, for example C:\Windows\WinSxS. WinSxS cleanup in Windows Server – using DISM and PowerShell
CLEAN DISK 2012 HOW TO
This post also shows you how to move the Windows Server SoftwareDistribution folder and user’s Documents folder to a different partition.

You can utilize your cmd.exe or PowerShell command-line, and use Deployment Image Servicing and Management ( DISM) to clean up the Windows Component Store (WinSxS) in Windows Server 2012 and up. This makes cleaning up used disk space a bit harder. The Windows disk cleanup utility cleanmgr is not available in Windows Server 2012 if the Desktop Experience-feature is not installed. The answer: Windows Updates, Service Pack, and hotfix installations.
