Any way to mount .img files?

by Pat Richard at 2013-04-24 09:49:23

I need to mount an .img file downloaded from Microsoft.com. It includes some software I’m installing on some servers through a scripted process. I have scripted downloading the file, but can’t seem to figure out how to mount it. Mount-DiskImage doesn’t seem to work with .img files.

Anyone?

The file I’m working with is available here: http://www.microsoft.com/en-us/download … x?id=35489
by Schlauge at 2013-04-24 11:43:09
Are you able to use third Party applications? I use SlySoft’s Virutal Clone Drive {freeware} http://www.slysoft.com/en/download.html

You can then use VCDMount.exe to mount and unmount the .img file.
PS C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive> .\VCDMount.exe \ghost01\IMAGES\ISO\BartPE-EETech.iso

I’ve used it previously but I’m only mounting ISOs, but it fully supports IMGs

Here is a forum post that talks about more options if you use multiple virtual drives
http://forum.slysoft.com/showthread.php?t=9371
by Pat Richard at 2013-04-24 11:57:07
Actually, I got it by calling explorer.exe with the .img file.
Start-Process -FilePath $env:systemroot\explorer.exe -ArgumentList "$TargetFolder\wacserver.img"
That mounts it and spawns an explorer window. But once the program is installed, I dismount the image, which closes the explorer window.