Dism /apply-image to VHD fails

I am trying to apply a 2012 R2 wim to a vhd.  

PS C:\WINDOWS\system32> Dism /apply-image /imagefile:E:\sources\install.wim /index:1 /ApplyDir:F:\ 

When I attempt to I get: 

Deployment Image Servicing and Management tool 
Version: 6.3.9600.16384 
 

Error: 11 
 

An attempt was made to load a program with an incorrect format. 
 
The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log 

The dism log shows: 

[1700] Caller did not request sparse mount 
[1700] Mounting new image. 
Wim:         [\\?\GLOBALROOT\device\harddisk0\partition5\Recovery\WindowsRE\Winre.wim] 
Image Index: [1] 
Mount Path:  [C:\WINDOWS\TEMP\aefc9fb0-e96e-4735-8dcf-fa37128d6ef6] 
[1700] Wimserv process started for guid f03fbba2-2cbc-4f83-8737-171c08ee9378.  Id is 1736 
[1736] ImageUnmarshallHandle: Reconstituting wim at \\?\GLOBALROOT\device\harddisk0\partition5\Recovery\WindowsRE\Winre.wim. 
[1736] Mounted image at C:\WINDOWS\TEMP\aefc9fb0-e96e-4735-8dcf-fa37128d6ef6. 
[1700] [0x8007007b] FIOReadFileIntoBuffer:(1415): The filename, directory name, or volume label syntax is incorrect. 
[1700] [0xc142011c] UnmarshallImageHandleFromDirectory:(511) 
[1700] [0xc142011c] WIMGetMountedImageHandle:(2568) 
[1700] [0x8007007b] FIOReadFileIntoBuffer:(1415): The filename, directory name, or volume label syntax is incorrect. 
[1700] [0xc142011c] UnmarshallImageHandleFromDirectory:(511) 
[1700] [0xc142011c] WIMGetMountedImageHandle:(2568) 
[1700] ImageUnmarshallHandle: Reconstituting wim at \\?\GLOBALROOT\device\harddisk0\partition5\Recovery\WindowsRE\Winre.wim. 
[1700] ImageUnmarshallHandle: Reconstituting wim at \\?\GLOBALROOT\device\harddisk0\partition5\Recovery\WindowsRE\Winre.wim. 
[1700] ImageUnmarshallHandle: Reconstituting wim at \\?\GLOBALROOT\device\harddisk0\partition5\Recovery\WindowsRE\Winre.wim. 
[1700] [0x80070070] ReadWriteDataInternal:(134): There is not enough space on the disk. 
[1700] [0x80070070] WriteDataCallback:(1143): There is not enough space on the disk. 
[1700] [0x80070070] AddCaptureNodeToImage:(4190): There is not enough space on the disk. 
[1700] [0xc144012e]  

I am not referencing partition5 and I don't want to. The vhd is located on a flash drive at F:. Which would be partition6. The wim is located on an iso that I mounted at E:. The Dism technet documentation page says "This command-line option does not apply to virtual hard disk (VHD) files." for /apply-image. 

Is this the correct way to do this? Any help with this would be greatly appreciated. Thanks in advance.

  • Edited by Silvr777 2 hours 55 minutes ago
December 25th, 2013 3:34am

first , you must copy install.wim(server2012) to one of local hard drive! {for example D:\}

second, you can use this command

Dism /apply-image /imagefile:d:\install.wim /index:1 /ApplyDir:H:\
so , H: is vhd disk that attached to letter H: [not vhd on flash disk !]
 . please use this links to best practice
http://blogs.technet.com/b/jamesone/archive/2009/05/27/how-to-install-an-image-onto-a-vhd-file.aspx

http://technet.microsoft.com/en-us/library/hh825691.aspx

http://technet.microsoft.com/en-us/library/hh824821.aspx

Free Windows Admin Tool Kit Click here and download it now
December 25th, 2013 5:38am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics