Can't create shadow copy in command line

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)


Solution 1:

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:\'