Converting install.wim to VHD! Please Help!


  1. Posts : 1
    Windows 7 Home Premium 64bit
       #1

    Converting install.wim to VHD! Please Help!


    Hi there,

    I was just wondering if someone would be nice enough to run me through on how to do this as I've tried many times and still stuck.

    I have WAIK installed and VIM2VHD.wsf but don't fully know how to get the install.wim file converted to VHD to then mount onto another drive.

    I've tried to do this in the CMD prompt:
    cscript wim2vhd.wsf
    d:\sources\install.wim /SKU:HomePremium

    After that I press enter and it comes up with the install.wim file windows will then ask me what to browse it with. Unsure of what I'm doing wrong.



    Can someone please help!

    Note: Can't use any other software other then WAIK and WIM2VHD.
      My Computer


  2. Posts : 2,528
    Windows 10 Pro x64
       #2

    ALL OF THESE COMMANDS SHOULD BE RUN FROM AN ELEVATED CMD PROMPT.

    The command syntax is:
    Code:
    wim2vhd.wsf /wim:D:\sources\install.wim /SKU:HomePremium /vhd:C:\temp\Win7HomePremiumSP1.vhd /disktype:Dynamic /signdisk:true
    Technically this VHD is meant to be used as the boot volume of a virtual machine in Hyper-V or VirtualPC, but you can "attach" (aka mount) a VHD to a drive letter in Windows 7 with a few diskpart commands:
    Code:
    diskpart
    select vdisk file=C:\temp\Win7HomePremiumSP1.vhd
    attach vdisk
    assign letter=V
    You can do it with the disk management console, but I'm a command-line guy and it's just faster to type a few commands than click about in the UI, at least in my opinion. Detaching a VHD is just as easy:
    Code:
    diskpart
    select vdisk file=C:\temp\Win7HomePremiumSP1.vhd
    detach vdisk
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:07.
Find Us