This video demonstrates you the usage of imagex together with either Windows Vista AIK or Windows 7 AIK.
A detailed command description can be found here.

The video shows the capturing of an installed “ready-to-clone” image where it will be saved to an external harddrive.
The second part will show the deployment to a fresh system where the target disk still needs to be prepared.