Created
March 12, 2015 18:47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#clean up servicepack backup files | |
$Host.UI.RawUI.WindowTitle = "Removing windows Service Pack backup files from Winsxs folder" | |
& dism /online /Cleanup-Image /SPSuperseded | |
#remove windows updates | |
$Host.UI.RawUI.WindowTitle = "Resetting winsxs base to save even more space" | |
& dism /online /Cleanup-Image /StartComponentCleanup /ResetBase | |
$Host.UI.RawUI.WindowTitle = "Removing windows updates from Winsxs folder" | |
& dism /online /Cleanup-Image /StartComponentCleanup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment