Geeks With Blogs

Connected Systems Chilled Out Blog Hanging stuff together in a meaningful way with some fun added

Windows 7 has native support for VHD mounting. Either use Disk Management from the Admin tools or diskpart utilitiy from command line.

To mount a VHD file in scripts using diskpart.

  1. Create a text file with this content:

SELECT VDISK FILE=”filename.vhd”

ATTACH VDISK

  2.  To attach the VHD image in a script, Use:  “diskpart -s scriptfile

For example:

Master file: VHDMount.cmd

diskpart -s "C:\Scripts\Mount.s"

Mount.s:

SELECT VDISK FILE="C:\DataVHD\ImageVHD.vhd"
ATTACH VDISK

Posted on Sunday, June 14, 2009 5:48 PM | Back to top


Comments on this post: VHD Mounting under Windows 7

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © BizTalk Visionary | Powered by: GeeksWithBlogs.net