This is for reference only:
* Change commands to suit your needs.
diskpart /s f:\diskpart.txt
Or manually:
> diskpart > list disk > select disk 0 (usually 0, which is the disk you want to image) > clean > list volume > select volume 1 (drive C) > delete volume > create partition primary (This is will the default size left, or you could specify ex: create partition primary size=80000 > list partition > select partition 1 (The newly created partition) > format fs=ntfs quick > active > assign letter=c > exit
cd TechTools
> imagex /apply source:\C.wim 1 C: