First, ensure you are using the x64 of Powershell, located under system32 not wow64.
Okay, Technoob1984 here with the scoop. See my attached screen shot.
This one is tricky, because you have to use x64 version of Powershell (located under system32 not wow64)
The Shadow Copy Context are the .properties of the object.
Also you have your object class incorrect
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/vsswmi/create-method-in-class-win32-shadowcopy
# get existing shadow copies
$shadow = get-wmiobject win32_shadowcopy
# get static method
$class=[WMICLASS]"root\cimv2:win32_shadowcopy"
#This lists the 'Shadow Context'
#The Shadow Context is the second variable for .create
#If your Shadow Context is correct, you will get a Shadow Copy ID
$class.properties
# create a new shadow copy using a path and shadow context
$class.create("C:\", "ClientAccessible")
# Count again
$shadow = get-wmiobject win32_shadowcopy
See my screen shot.
[![enter image description here][1]][1]
- Enjoy
[1]: https://i.stack.imgur.com/38l5c.png
Okay, Technoob1984 here with the scoop. See my attached screen shot.
This one is tricky, because you have to use x64 version of Powershell (located under system32 not wow64)
The Shadow Copy Context are the .properties of the object.
Also you have your object class incorrect
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/vsswmi/create-method-in-class-win32-shadowcopy
# get existing shadow copies
$shadow = get-wmiobject win32_shadowcopy
"There are {0} shadow copies on this sytem" -f $shadow.count
""
# get static method
$class=[WMICLASS]"root\cimv2:win32_shadowcopy"
# create a new shadow copy
"Creating a new shadow copy"
$class.create("C:\", "ClientAccessible")
# Count again
$shadow = get-wmiobject win32_shadowcopy
so in the example there, you would want to use $class.Properties to see what you can use as a Shadow Context.
See my screen shot:
[![enter image description here][1]][1]
So 'Caption, Count, Description' and anything else under the 'Name:' value of .Properties.
- Enjoy
[1]: https://i.stack.imgur.com/DPveh.png