Manage Shadow Copies on Client Machines

  • Section(s): TroubleShooting , Admin , Utilities
  • Published on May 12, 2005.
  • Last Modified on May 12, 2005.
  • Last Modified by Mitch Tulloch.
  • Rated 2.2 out of 5 based on 5 votes.
Did you know you can manage shadow copies on the client side from the command line?

While shadow copies can be enabled on a volume and previous versions accessed using the GUI, Windows Server 2003 also includes a command-line utility called vssadmin that can be used to manage shadow copies on the server side. But what about using the command line to manage previous versions of files from the desktop end? The Windows Server 2003 Resource Kit includes a tool called volrest that can be employed for just that purpose; you can use it to list or search for previous versions of a file and restore such versions to the same or different locations.

 

To use volrest, you first need to know the UNC path to the shared folder; for example, \\test220\reports would be the Reports share on the file server named SRV220. Let's say we want to access a previous version of the above file doc.4.rtf, which is located within the Annual Reports 2004 folder in this share. In this case, the UNC path to this particular file would be "\\test220\reports\Annual Reports 2004\doc.4.rtf"; the quotation marks are needed because of spaces in the pathname. To list all available versions of this document, just type the following at the command line:

 

C:\>volrest \\test220\reports\Annual Reports 2004\doc.4.rtf

 

To recover a particular version of this file, just type:

 

C:\>volrest "\\test220\reports\Annual Reports 2004\doc.4.rtf" /r:E:\Stuff

 

This will restore all previous versions of the file to a temporary folder (here E:\Stuff) and you can then copy the version of the file you want to keep to your home folder and make it your new working copy of the document.

About Mitch Tulloch

Mitch Tulloch is a widely recognized expert on Windows administration, networking, and security. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy and use Microsoft platforms, products and solutions. Mitch has published over two hundred articles on different IT websites and magazines, and he has written or contributed to almost two dozen books and is lead author for the Windows 7 Resource Kit from Microsoft Press. For more information, see www.mtit.com .


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred network administration tool?