I converted 2 of my drives to be a mirrored storage space on windows 10. I am using ReFS. This drive is d drive.
When I create a restore point the dialog that comes up does not have d drive in it.
Thus I cannot configure the shadow copy space allocation for that drive, or turn system protection on or off. I used to be able to do this when the drives were separate and NTFS.
My aim is to schedule a daily restore point using the powershell Checkpoint-Computer command. But I assume that this drive won't be included if I can't configure it in the system restore dialog?
Why is it missing? Is there some kind of issue with storage spaces or ReFS? I suspect not because my backup program is creating a snapshot of that d drive when running a backup.
I found some information about enabling drives for system restore in powershell,
But again no luck. I found others online saying that I should run powershell as administrator, which I am doing, and also to check the drive exists, and this follows,
Update:
I tried this command as suggested. I double checked I was using an elevated command prompt,
vssadmin add shadowstorage /for=D: /on=D: /maxsize=100GB
And this is what I get,
Looks like this is only for server versions of windows.
Best Answer
1 Create shadow storage
1.1 The
System protection
tab inSystem Properties
vssadmin add shadowstorage /for=D: /on=D: /maxsize=100GB
(Windows Server only)vssadmin resize shadowstorage /for=D: /on=D: /maxsize=10%
that will add shadow storage if it does not exist and thus is comparable tovssadmin add
wmic shadowstorage call create Volume=D:\ DiffVolume=D:\ MaxSpace=20
ReturnValue = 10
(which is Unknown error) workaround followswmic shadowcopy call create Volume=D:\
vssadmin resize shadowstorage /for=D: /on=D: /maxsize=10%
1.2 List shadow storages
vssadmin list shadowstorage
wmic shadowstorage list
2 Create shadow copy
2.1 Create shadow copy
wmic shadowcopy call create Volume=D:\
2.2 List shadow copies
vssadmin list shadows /for=D:
3 Mount shadow copy
Previous versions
tab in disk/file properties3.1 Get shadow copy ID
vssadmin list shadows /for=D:
Shadow Copy ID: {5cc29315-0379-415e-8496-69923618e3de}
3.2 Get shadow copy path
wmic shadowcopy where "ID='{5cc29315-0379-415e-8496-69923618e3de}'" get DeviceObject
vssadmin list shadows /for=D:
Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy624
3.3 Mount shadow copy as folder
mklink /j %tmp%\shadow \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy624\
\
at the end%tmp%\shadow