Jan 10, 2009

Change Amount of Space Used for System Restore in Vista

If you have system restore enabled in Windows Vista, after a few weeks the amount of space used by Vista for system restore will be growing in GB's. You don't have any option in Vista that allows you to limit the amount of space used by Vista for System Restore. In Windows XP you had the option to set the amount of hard disk space used for system restore by just adjusting a slider provided but no such luck in vista.

Fortunately there is a option which we can use to set the disk space for system restore in Vista. You have to edit this option from command line. Here is how you do it.

--- Go to start menu and type cmd in the search box. When it shows up in top box right click on it and select Run as Administrator.
--- Windows has a service called Volume Shadow Copy which holds the settings for the storage space used. You can see the options that can be used by typing vssadmin /? in the command prompt. This is how it looks.--- Now to see the amount of space used by system restore and Maximum allowed space type this command. vssadmin list shadowstorage. You will see something like this.
--- Now the option that we are going to use to change the space used for system restore is Resize ShadowStorage. To see what options it gives type this command. vssadmin Resize ShadowStorage.

You will be shown a screen where you can see what option you can use. Here you will be told that MaxSize should be atleast 300MB. You can use suffixes KB (kilobytes), MB (megabytes) and so on like GB, TB, PB and EB. If nothing is specified then the default suffix will be bytes.

--- Now to change the amount of space used by Windows Vista for system restore we have to use this command
vssadmin Resize ShadowStorage /For=ForVolumeSpec /On=OnVolumeSpec /MaxSize=MaxSizeSpec

So how to use this command?

Say you want to set the maximum amount of storage of 2GB that system restore uses for system restore points created for C drive and you want to store them in C drive only. You use the command like this

vssadmin Resize ShadowStorage /For=C: /On=C: /MaxSize=2GB

This will allow only 2GB of space to system restore in C drive.

--- You will get a confirmation of the operation being successfully completed.The amount of space allocated for system restore in your Windows Vista has been resized to your liking.

No comments:

Post a Comment