UPDATE 01/29/2013:
This is a script that works with Hyper-V and MDT and automatically builds WIM images for you. It uses MDT 2010 with fully unattended Task Sequences and saves captured WIM file to any location, which can be SCCM OSD source of OS image. Now your image build process becomes "set it and forget it" solution, and if you enable Windows Update steps in the standard Task Sequence, you will be getting all latest patches from Microsoft when you build your reference images.