The script can be found here: http://gallery.technet.microsoft.com/scriptcenter/Convert-WindowsImageps1-0fe23a8f/
However, I ran into a problem today with the script throwing an error about "Could not get the BootMgr object from the Virtual Disks BCDStore"
It turns out from a couple of replies in the discussion thread of the TechNet Gallery listing that this will generally happen if trying to run the script from a device that uses UEFI to boot, which I happen to be doing.
Thankfully the fix is relatively easy, you just need to modify the script slightly.
- Do a search in the script for $bcdBootArgs which is usually first referenced at line 4055
- On the line a couple below (usually 4057) change the following
"/s $Drive" modify to "/s $Drive /f ALL"
Save the script and you're good to go!