This technique has been applied to restore Windows 7 to the factory settings found in the Recovery partition in a dell inspiron laptop. The partition is usually hidden. To make it visible, right click on My Computer and choose Manage. From the list of drives that appears, right click on the drive labeled Recovery and choose Mount. Note the drive letter assigned to the partition. Also collect a Windows 7 DVD because the recovery process needs to be carried out from the software in the DVD, not from hard-disk.
So, we are wiping away whatever junk is there in C:. Lets say the drive letter assigned to our recovery partition is E. The recovery partition contains some useful tools, one of which is imagex. This is what we will use to extract our .wmi image file to C:. Follow the steps below to restore your windows.
Step 1: Boot from the DVD. In case it does not do that automatically, you may need to change boot device priority settings from BIOS
Step 2: From the setup screen that appears, click on Repair
Step 3: From a list of repair options, choose the line that talks about Command Line
Step 4: A black screen with a blinking cursor appears.You have to change to the recovery drive, then to the tools folder and finally run imagex to restore the image.To achieve this, enter these commands:
imagex /apply d:dellimagefactory.wim 1 c:
Give yourself some time, as this takes about half an hour to complete. When done, restart your computer, and this time, boot from your hard-disk. Enjoy!