Skip to content

Instantly share code, notes, and snippets.

@yyamasak
Created April 25, 2016 02:58
Show Gist options
  • Save yyamasak/cc1ea8a168603c5bbe68646ef71a83f0 to your computer and use it in GitHub Desktop.
Save yyamasak/cc1ea8a168603c5bbe68646ef71a83f0 to your computer and use it in GitHub Desktop.
Reset disk space usage to 10% if the max usage is automatically extended to 100%
chcp 437
vssadmin list ShadowStorage /On=C:|findstr /c:"Maximum Shadow Copy Storage space: UNBOUNDED (100%)"
IF ERRORLEVEL 0 (vssadmin Resize ShadowStorage /For=C: /On=C: /MaxSize=10%)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment