I am going to assume that you are reading this because all the easy ways to do the factory reset have failed.
To be safe, first back up your recovery partition, and anything else you want to keep. Doing a factory reset will delete your files on the hard drive.
You will need a Windows PE bootable flash drive. Instructions on how to make one here.
Once you have a bootable flash drive, it's pretty easy, if things work correctly.
Plug your Windows PE flash drive into a USB port and restart the computer. When the Dell logo appears, press F12 repeatedly until a boot menu appears. If you do not have a LEGACY BOOT menu, try to enable legacy boot options (see "Boot from recovery USB - take 3" on this post). If your USB Storage Device is not listed on the LEGACY BOOT menu, it means there is a problem with your Windows PE bootable flash drive (it is not bootable).
Windows PE will start. At first it looks just like a Windows 7 installation (with the Windows is loading files bar, then the Windows is starting screen), but eventually, it opens to a grey background and a big command prompt window. Wait until the initialization command finishes and you have a blinking cursor at the prompt.
In a previous post, I covered how to backup the partition to an external storage device. If you have destroyed all the data on your hard drive and no longer have the recovery partition (but do have the backup), then you will need to transfer these files back to the hard drive first. This will be covered in subsequent posts.
To check whether you have a recovery partition on your drive and to assign a letter to it (if needed), see this post.
Now I am assuming your hard drive is properly formatted and has a partition ready to receive the OS. If it does not, you will have to prepare your hard drive first (again to be covered in subsequent posts).
You can use DiskPart (see this post) to find out what letter was assigned to the partition where the OS goes. If you have not messed with your hard drive too much yet, the partition labeled "OS" and with "boot" under Info is the one you want to restore the image to. Usually, that will be the C partition. But do make sure before proceeding.
I am going to assume you have your recovery files in the volume labeled as R. Exit DiskPart before proceeding.
To summarize: recovery files in R, OS goes on C. Insert your own letters and edit the imaging command below accordingly.
You may have read elsewhere that imagex is in the tools folder and that it needs to be ran from there. With the flash drive we created, that is not true and not necessary.
Give it a shot. type:
imagex
That will bring up a list of instructions on how to use imagex (but won't actually perform any task).
imagex /apply r:\dell\image\factory.wim 1 c:\
The process should start. I have a bunch of crap on the screenshot below because I ran the command wrong at first. If you get a bunch of output telling you how to use imagex instead of an "Applying progress" status, it means you typed the command wrong. Double check it. In my case, I forgot to type the "1". After I fixed that mistake, the process ran. A tip from Linux: if you do type the command wrong at first, hit the up arrow. It will bring back the command you typed originally and you can edit it, instead of retyping the whole thing.
No comments:
Post a Comment