0

Is it possible to create a Windows shadow volume copy of an HDD to a VHDX using powershell?

I got as far as simply creating an empty VHDX

$disk = New-VHD -Path "d:/test.vhdx" -Dynamic -SizeBytes 25GB
resle
  • 189
  • 1
  • 1
  • 9

1 Answers1

2

You have to use Disk2vhd (a command line tool) but there are no native powershell command to do that.

Usage: disk2vhd <[drive: [drive:]...]|[*]>

Swisstone
  • 6,725
  • 7
  • 22
  • 32