11

Hopefully someone can explain me what I'm doing wrong. I'd like to create a shadow copy from command line so I started one with administrative rights and enter this command:

vssadmin create shadow /for=e:

But everything I get is error: invalid command.

When I run vssadmin without parameters then I am given a list of available commands, but create is not in the list.

Why can't I create a shadow copy?

Btw: I'm using Windows 10 Pro (x64)

20

VSSAdmin only has the create option on Windows Server as shown here. Instead, you will have to make use of a PowerShell script to create the shadow.

powershell.exe -Command (gwmi -list win32_shadowcopy).Create('E:\','ClientAccessible')

Since this just makes use of the Win32_ShadowCopy class in WMI, you can use other methods to create the shadow. This includes the wmic utility.

wmic shadowcopy call create Volume='E:\'
  • Thanks this looks like what I need. Regrettably I get an error that the initialization failed. There must be something wrong on my system. :/ – AlexS Sep 18 '16 at 13:45
  • 2
    Sorry, my fault: I did not start the command line with administrative rights. Works like a charm! :) – AlexS Sep 18 '16 at 13:47
  • +AlexS I made the same mistake, I feel pretty stupid now.. :D – joonas.fi Aug 20 '18 at 16:22
  • Why there is this limitations? Is it exactly the same to use that script? – Fractale Aug 7 '19 at 8:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.