Windows 8 and 8.1 Forums


recover windows 8 from a .wim file

  1. #1


    Posts : 8
    Win 7

    recover windows 8 from a .wim file


    hi,
    we made a .wim file to restore win8. Anyone know how to do this?

      My System SpecsSystem Spec

  2. #2



    Hafnarfjörður IS
    Posts : 4,356
    Linux Centos 7, W8.1, W7, W2K3 Server W10


    Hi there

    1) Download the WAIK (W7 version is fine)

    2) copy file IMAGEX.EXE from the WAIK to a directory -- use the correct IMAGEX file for the Windows you want to restore -- it sits in the TOOLS directory of the WAIK.

    (AMD64 for W8 x-64, or the version in x-86 for 32 bit version. Don't use the one in the IA directory).

    3) then simply run the command :

    imagex.exe /apply install.wim 1 d:\ (d is the assumed drive you are using for your target system and the .WIM is the name of your .WIM file --I've just taken as an example the standard "INSTALL.WIM' file that exists on the install media for W8 Consumer Preview).

    Note this must be a device (can be a USB etc) which already has an ACTIVE partition on it.

    You'll also need to create the Boot image

    after the WIM has restored run

    bcdboot.exe d:\windows /s d: /f ALL (assumed d is the device where you have restored the WIM image via imagex).

    You will actually need a W8 system to create the boot record --the W7 version of this program has slightly different parameters

    So the easiest way if you don't have a W8 system is just quickly install a "Mickey Mouse" one -- takes about 10 mins - 15 mins -- doon't bother with finding drivers etc -- all you want it for is to run the bcdboot command and then you can get rid of it.

    You could even use a VM.

    Next time I'd suggest after the system is up and running is to save the image with something like Acronis / Macrium as you can even "Stand alone" restore these from DVD's etc.

    Cheers
    jimbo
      My System SpecsSystem Spec

  3. #3



    Posts : 5,327
    7/8/ubuntu/Linux Deepin


    Easier to d/l gimagex - it's very small and free - ( you will need to run it from win 7 or win8 or win7 or win 8 pe - else you will need to install wimfltr )

    GImageX - AutoItScript

    apply the image to a premade partition with that.

    Create boot files with bcdboot command - use win8 you just applied as the source and the active partition as target.

    bcdboot win8partitionletter:\windows /s activepartitionletter:

    Win8 seems to be very fussy about where you are installing to - might not be happy if you are using one of those 100mb things as the active partition.

    I ended up making the win8 partition iself the active one - it wouldn't co-operate otherwise.

    Might be different on your system.
      My System SpecsSystem Spec


  4. #4



    Hafnarfjörður IS
    Posts : 4,356
    Linux Centos 7, W8.1, W7, W2K3 Server W10


    Quote Originally Posted by SIW2 View Post
    Easier to d/l gimagex - it's very small and free - ( you will need to run it from win 7 or win8 or win7 or win 8 pe - else you will need to install wimfltr )

    GImageX - AutoItScript

    apply the image to a premade partition with that.

    Create boot files with bcdboot command - aimed at the active partition.
    Hi there

    I'd forgotten that program looks good --thanks

    However you still need the bcdboot program from a W8 system -- I tried with a W7 system -- parameters all different. It *might* work* but as I had some W8 VM's it was easier to "attach" the device to the VM and use the BCDBOOT from that system.

    You'll still need to download the WAIK too of course to get the imagex program. (I know this sounds obvious to experienced people but sometimes if you aren't usually involved in system deploymenet etc all this stuff is NEW so you might not realize that the GUI is only a "Front end" for the imagex program which you still have to get from Ms via the WAIK.

    Cheers
    jimbo
      My System SpecsSystem Spec

  5. #5



    Posts : 5,327
    7/8/ubuntu/Linux Deepin


    If you like, you can lean over and use the bcdboot.exe on the partition you just applied it to, like this:

    win8partitionletter:\windows\system32\bcdboot win8partitionletter:\windows /s activepartitionletter:

    So , in my case - where I had applied win8 to D and made D active

    D:\windows\system32\bcdboot D:\windows /s D:
      My System SpecsSystem Spec

  6. #6



    Hafnarfjörður IS
    Posts : 4,356
    Linux Centos 7, W8.1, W7, W2K3 Server W10


    Quote Originally Posted by SIW2 View Post
    Yes, you can lean over and use the bcdboot.exe on the partition you just applied it to, like this:

    win8partitionletter:\windows\system32\bcdboot win8partitionletter:\windows /s activepartitionletter:
    Hi there SIW2 -- thanks for the tip -- I went the VM route but this is obviously easier and quicker -- you've obviously done this stuff before !!!!.

    I created a single partition with Diskpart Clean etc. so no probs with the "System Partition" that is sometimes created with W7 / W8 installs.

    I think if the WHOLE device is used as a single partition it's fine. You can "shink" the partition afterwards wit GPARTED / PartitionImage etc.

    Cheers
    jimbo
      My System SpecsSystem Spec

  7. #7



    Posts : 5,327
    7/8/ubuntu/Linux Deepin


    I always install like that.

    It allows for a bit of registry customizing after applying and before rebooting.

    Had a bit of trouble with 8 - not sure why yet.
      My System SpecsSystem Spec

  8. #8


    Portsmouth Hants
    Posts : 769
    Windows 8.1 Pro with Media Center


    I found that just applying the W8CP install.wim to a partition that previously had contained a windows 7 installation which had just been quickformatted over, needed no additional work to get to boot - the Windows 7 bootloader seemed to be happy to load the old bcd data and boot the Windows 8 system up. F8 worked fine from the bootmenu too. I just needed to edit the boot entry to read "Windows 8 x64".

    As an alternative to Imagex, there's a free to home users program called SmartWIM, which has the additional feature of being able to create diff files - making the images much more flexible as backups. It's also scriptable, and also a very small download.

    SmartWIM 2.0 now available - DeployCentral
    SmartDeploy OS Deployment Products
      My System SpecsSystem Spec

  9. #9



    Odell
    Posts : 60
    Windows 8CP


    Don't use WAIK anymore with CP. About the Windows Assessment and Deployment Kit <-- this is it's replacement.
      My System SpecsSystem Spec

  10. #10



    Hafnarfjörður IS
    Posts : 4,356
    Linux Centos 7, W8.1, W7, W2K3 Server W10


    Quote Originally Posted by baarod View Post
    Don't use WAIK anymore with CP. About the Windows Assessment and Deployment Kit <-- this is it's replacement.

    Hi there
    ????

    What are you actually saying here --I can't find ANYTHING in your post --including going to the MS link which serves as the replacement .

    Also SmartWim runs like a One Legged dog on an Ice Pond compared with IMAGEX. I'm always suspicious anyway of these type of products. If MS is designing windows it just seems obvious that for "Kernel" type images MS should be the best source --note here I'm not talking about 3rd party apps etc but just the basic kernel Sources.

    Cheers
    jimbo
      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
recover windows 8 from a .wim file

Similar Threads
Thread Forum
How to recover from losing ALL file associations
I recently contracted a virus which seems to have eliminated ALL my file associations. I've confirmed that .LNK, .EXE, .COM, and .BAT associations are gone. All proposed fixes to re-associate .EXE files don't work for me, because of all the other associations I've lost. I have been able to...
General Support
Can't boot Windows, Not able to recover data!
Hey, forum! Long story as short as possible: Asus Zenbook UX51VZ / Windows 8 OEM Upgraded to Win 8.1 around three weeks ago Faced no problems (surfing, media programs, games worked fine) Last Friday during startup I received an error message telling me that something isn't correct...
General Support
How to Recover windows 8 onto laptop?
My asus Laptop, K55N-DB81 has Linux on it. BUT before I had windows 8 on it. Now I want to re-install Windows 8 on it, but I don't know how to. I didn't create any recovery disks :cry:, and the Product Key is embedded into the Bios. I know what the Product Key IS just in case I would have to enter...
Installation & Setup
Office 2013 - Recover Saved and Unsaved File Versions
How to Recover Saved and Unsaved Versions of Word, Excel, and PowerPoint 2013 Files If the AutoRecover and AutoSave option is turned on in Word 2013, Excel 2013, and PowerPoint 2013, then you can automatically save versions of your file while you're working on it to avoid losing your work if a...
Tutorials
Can I recover my 8.1 without loading into Windows?
So I pressed shutdown and install updates. The computer has since been unable to restart. It keeps giving the message that it is repairing the error and going to restart. Which is the message it keeps giving every time it restarts. I recovered as much as I can by loading Ubuntu through a USB...
General Support
How to recover Windows 8.1 Files without re-installing?
Hi all! I have a fairly new (purchased 8/2013) Lenovo ThinkPad T431s with Windows 8.1 Pro 64-bit. It has a very tricky error coming basically 8 / 10 boots: Windows is Scanning and repairing drive... 39133 Error details from Windows Event Viewer:
Performance & Maintenance
recover windows 8 from a .wim file
Performance & Maintenance

Eight Forums Android App Eight Forums IOS App Follow us on Facebook