I had earlier blogged about a script I wrote to capture OS VHDs from WIM files directly. This one got lot of attention as expected. Now, Mike Kolitz released a better version of what I did. He calls it WIM2VHD. Of course, you still need to have Windows 7 and Windows 7 WAIK tools installed on the system you are running this script. Both the scripts use diskpart commands to do the job.
To some extent, I knew that some one from MS would do this because they have left traces of running this tool within the public beta builds. On a few installs, you can find WIM2VHD.log on the boot partition. I don’t remember the exact path though.
You can download Mike’s script here. Thanks Mike..!