Wednesday, August 27, 2008

Change the amount of space used by System Restore - Vista

In order to configure the amount of space used by System Restore, you need to use a tool called Volume Shadow Copy Administrative Command-Line Tool (or vssadmin.exe).
  1. To access vssadmin.exe we will have to open the command prompt with administrative rights. In order to do that, type "cmd" or "command" in the Start Menu search field. The first result should be cmd.exe or the Command Prompt. If you have UAC turned on, right click on it and select Run as administrator.
  2. The Command Prompt will open. The Volume Shadow Copy Service offers several configuration option. Type vssadmin /? and press Enter to see the list of available options.
  3. If you want to know how much space has been allocated and the maximum amount of space that can be used by System Restore, type vssadmin list shadowstorage and then hit the Enter key.
  4. If you want to change the amount of space used by System Restore, you should use the following command:
  5. vssadmin resize shadowstorage /on=[drive letter]: /For=[drive letter]: /Maxsize=[maximum size]
  6. MaxSizeSpec must be 300MB or greater and accepts the following suffixes: KB (for kilobytes), MB (for megabytes), GB (for gigabytes), TB (for terabytes), PB (for petabytes) and EB (for exabytes). If a suffix is not supplied, MaxSizeSpec is in bytes. If MaxSizeSpec is not specified, then there will be no limit to the amount of space it may use.
  7. For example, if you want System Restore to use a maximum of 1GB of space for the restore points on drive "C:", you should type the following:
  8. vssadmin resize shadowstorage /On=C: /For=C: /Maxsize=1GB
  9. The maximum space used by System Restore has now been resized.

No comments: