Out-of-box machines now-a-days are coming with a recovery partition. If you are using MDT 2012 to deploy your Windows 7 image, the Task Sequence will format the partition and you will lose that recovery partition.
Modifying the Task Sequence to keep the recovery partition and then deploy your Windows 7 image.
creating the text file and dropping it into Scripts folder located in the deployment share:
Modify the format partition Task Sequence and create a new command line:
Go into the “Install” step of the Task Sequence and change the location of the Operating System, so it could apply to the correct partition: