wsl -- curl -L 'https://gist.githubusercontent.com/koumaza/39a046a6a912a2463b0f7c6eb9054c26/raw/84c4061c0b8e45d1758c99b06d31e32d137ac387/vhdx_cleanup.cmd' > vhdx_cleanup.cmd
Last active
December 24, 2019 05:41
-
-
Save koumaza/39a046a6a912a2463b0f7c6eb9054c26 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@echo ---RunAs Admin--- | |
wsl --shutdown | |
powershell Optimize-VHD -Path %~dp0*.vhdx -Mode Full | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment