Accessing Volume Shadow Copy (VSS) Snapshots from powershell

前端 未结 4 454
一向
一向 2020-12-08 02:54

I am attempting to create and access a Volume Shadow Copy snapshot using the Windows Power Shell in Windows 7. I found that I can create snapshots using the following via a

4条回答
  •  再見小時候
    2020-12-08 03:45

    Try replacing $shadow.Delete() with Remove-CimInstance -InputObject $shadow

    This has worked for me

    Before I was getting similar error:

    $shadow.Delete() was giving me error:

    Error en la invocación del método porque [Microsoft.Management.Infrastructure.CimInstance] no contiene ningún método llamado 'Delete'. En línea: 42 Carácter: 9 + $shadow.Delete(); + ~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (Delete:String) [], RuntimeException + FullyQualifiedErrorId : MethodNotFound

提交回复
热议问题