A week back I wrote about a new sysinternals tool called Disk2VHD. After the initial 1.0 release, many people have expressed the need for having command line support. Sysinternals team listened to all of this. They just released disk2vhd 1.1. You can now use the following options to perform p2v from command-line.
Usage: disk2vhd <[drive: [drive:]…]|[*]> <vhdfile>
Example: disk2vhd * c:\vhd\snapshot.vhd
Where can you use this option?
I can think of many possibilities.
- You can now use a simple script to walk through all of your systems in the data center and capture all physical hard drives as VHD files.
- Imagine being able to run this immediately after sysprep to capture the sysprep’ed system volume as VHD file. You can use that as a master image for both physical and virtual machines
I will write about the second option sometime soon..Stay tuned.