How about a DISM cleanup?
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Guys
Do you have any good PowerShell scripts to cleanup Windows 10 harddrives? I try the cleanmgr but no matter what I do it doesn't clean the "Windows Update Cleanup" option. I need to create a script that I can run on VDIs when they get under 10 GB
How about a DISM cleanup?
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
Hi @Raimondi, Anthony (Cognizant) ,
maybe this help:
https://www.jaapbrasser.com/diskcleanup-remove-previous-windows-versions-powershell-module/
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
Hi,
Does this help?
https://github.com/hematic/Server-OS-Drive-Cleanup-Script/
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.