blog post

vshadow.exe versions

Vshadow.exe is a nifty little command-line tool for creating/deleting/querying/managing shadow copies on Windows. Unfortunately, it doesn't ship with any version of Windows, there are different versions of it for every version of Windows, and it typically comes packaged in some big SDK package.

(The exception here is Windows Vista/2008 and 7/2008 R2, which ships with diskshadow.exe, a tool with the same functionality, but a different interface - it has its own shell, similar to how diskpart.exe works. This arguably makes it more difficult to script; mostly because it involves dealing with another scripting environment.)

Here's a StackOverflow answer with a bit more background to all this.

To make things easier, I've collected the various vshadow.exe versions into a single zip file, which you can download here.

Inside that zip file are the following files -

  • vshadow-2003-x86.exe
  • vshadow-2003-x86-alt.exe
  • vshadow-xp-x86.exe
  • vshadow-2008-r2-x64.exe
  • vshadow-2008-r2-x86.exe
  • vshadow-2008-x64.exe
  • vshadow-2008-x86.exe

They are named according to the operating system version they work on.

As far as I know, there isn't a version specifically for 2003 x64, and there aren't any versions specific to 2003 R2 either. So I believe vshadow-2003-x86.exe will work on R2 systems, as well as x64. You'll just get an error if they don't - no harm will be done (don't quote me on this though; this was the case with running the x64 one on x86 machines, and the 2008 one on 2008 R2, so there is precedence).

There are two versions for Windows Server 2003, because both claim to be for that OS version, but they're different sizes. I don't have a 2003 box around to work out the difference. There is also a separate one for Windows XP.

The files above also run on the corresponding desktop operating system unless there is a specific version for the desktop operating system, i.e. the 2008 files run on Windows Vista; and the 2008 R2 files run on Windows 7.

changelog

1.
19th October 2010 9:47 PM

Thanks to Kerridge Hanning in the comments, I have added vshadow.exe for Windows XP into the download and amended the post.

Tagged with:
  • command line tool
  • scripting
  • sysadmin
  • windows
published 28th June 2010 3:41 PM
last modified 3 months, 3 weeks after
 
comments
1.

Thanks! You saved my life!

Posted by MLIRA, 12th August 2010 8:08 AM
 
2.

Excellent work.

I can update my SAVE USER PROFILE script to work with Windows 7 now!


Many thanks. :-)

Posted by Stuart Halliday, 8th September 2010 4:53 AM
 
3.

Thanks!

I've been searching this for ages!

Posted by Karlos, 7th October 2010 7:41 PM
 
4.

Thank you very much. I really couldn't be bothered to download 2.5 GB of files just for one file!

Posted by Kerridge Hanning, 8th October 2010 9:27 AM
 
5.

Brilliant! Exactly what I've been searching for and not finding for so long. Great stuff, thanks very much :o)

Posted by Simon Plaistowe, 12th October 2010 12:52 AM
 
6.

I still had a problem with an xp sp3 system (2003 version didn't work) and had to download another version which i got via this page:-

http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=User_Scripts_-_Client_-_Windows_VSS

 

instructions were:

vshadow.exe (The version for Windows XP may be copied from "C:\Program Files\Microsoft\VSSSDK72\TestApps\vshadow\bin\release-xp\vshadow.exe" if the SDK is installed to its default location.)

hth someone else.

Posted by Kerridge Hanning, 15th October 2010 1:35 AM
 
7.

Very helpfull !

Posted by Hayim, 14th November 2010 9:05 PM
 
8.

This is awesome! I've been waiting at least 20 minutes for the stupid windows 7 SDK to install before I stumbled on this. Thanks!!

Vshadow + rsync on cygwin = winning backup

Posted by Andrew, 16th December 2010 5:18 PM
 
9.

Thankyou!

Posted by rimroot, 5th April 2011 7:57 PM
 
10.

the x86 for win2k3 does not work on my win2k3 x64 server with exchange 2007 :-(

I will keep looking for the  correct version...

Posted by Domenico, 7th April 2011 5:33 PM
 
11.

Is there a silent (quiet or unattended) option to install this? Thanks in advance.

Posted by Danny, 16th August 2011 5:16 AM
 
12.

^I think they are just executable binaries. Not installers.

Posted by Seano, 16th August 2011 1:07 PM
 
13.

So these vshadow.exe files run on their respective intended target OS without having to install the full SDK package that the exe originally came bundled with?

They seem quite small. I do notice, however, that on my Win Server 2008 x64 (no SDK installed) that there is a Volume Shadow Service already installed (but not running) so I guess the answer could be yes?

I have already downloaded Win2008Server_x64_SDK_setup.exe so do you think it is best to just install the full package rather than use vshadow.exe by itself?

Posted by Seano, 17th August 2011 1:20 PM
 
14.

@Seano - yep, these vshadow.exe files are standalone executables that can be used without installing the full SDK.

vshadow.exe is actually the result of sample code bundled in the SDK. The rest of the SDK includes things that help build vshadow.exe, but once it is built the other SDK files are no longer needed. Unless you are developing other applications for Windows, the SDK is unnecessary.

vshadow.exe is small because, as you mentioned, it just contains code to talk to the Volume Shadow Service, which then does all the grunt work.

Posted by [edgylogic] sam, 17th August 2011 6:53 PM
 
15.

Does anyone know if VSHADOW.EXE is redistributable? I need to integrate it as part of a solution in my final year project at uni. Thanks.

Posted by Jon Shorter, 3rd November 2011 3:25 AM
 
16.

@Jon, the individual SDKs will probably contain the details. I've only got the Windows 7 one installed at the moment; here's what it says -

From C:\Program Files\Microsoft SDKs\Windows\v7.1\License\License.htm (only relevant snippets included),

2. ADDITIONAL LICENSING REQUIREMENTS AND/OR USE RIGHTS.

a. Distributable Code.  The software contains code that you are permitted to distribute in programs you develop if you comply with the terms below.

i. Right to Use and Distribute.  The code and text files listed below are “Distributable Code.”

· Sample Code.  You may modify, copy, and distribute the source and object code form of code marked as “sample.”

And from C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\winbase\vss\vshadow\readme.html,

The VSHADOW sample client

Introduction

This tool serves as a sample VSS application that demonstrates various tasks performed by a regular VSS requestor. VSHADOW.EXE also offers a simple command-line interface for VSS management, including shadow copy creation, deletion and query.

I'm not a lawyer, but that looks like it should be ok to redistribute.

Posted by [edgylogic] Sam, 3rd November 2011 9:37 PM
 

leave your mark