Windows 8 and 8.1 Forums


recover windows 8 from a .wim file

Page 1 of 2 12 LastLast
  1. #1



    Junior Member

    Join Date : Mar 2012
    Posts : 8
    Win 7

    recover windows 8 from a .wim file


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


      My System SpecsSystem Spec

  2. #2
    jimbo45's Avatar

    Senior Member



    Join Date : Sep 2011
    Hafnarfjörður IS
    Posts : 4,267
    Linux Mint KDE 16, W8.1, W7, W2K3 Server
    Iceland


    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 Windows 8 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 Windows 8 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 Windows 8 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 Windows 8 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



    Team Member


    Join Date : Apr 2011
    Posts : 5,225
    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 Windows 8 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 Windows 8 you just applied as the source and the active partition as target.

    bcdboot win8partitionletter:\windows /s activepartitionletter:

    Windows 8 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 Windows 8 partition iself the active one - it wouldn't co-operate otherwise.

    Might be different on your system.
      My System SpecsSystem Spec

  4. #4
    jimbo45's Avatar

    Senior Member



    Join Date : Sep 2011
    Hafnarfjörður IS
    Posts : 4,267
    Linux Mint KDE 16, W8.1, W7, W2K3 Server
    Iceland


    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 Windows 8 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 Windows 8 system -- I tried with a W7 system -- parameters all different. It *might* work* but as I had some Windows 8 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



    Team Member


    Join Date : Apr 2011
    Posts : 5,225
    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 Windows 8 to D and made D active

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

  6. #6
    jimbo45's Avatar

    Senior Member



    Join Date : Sep 2011
    Hafnarfjörður IS
    Posts : 4,267
    Linux Mint KDE 16, W8.1, W7, W2K3 Server
    Iceland


    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 / Windows 8 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



    Team Member


    Join Date : Apr 2011
    Posts : 5,225
    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
    fafhrd's Avatar

    Member

    Join Date : Jul 2011
    Portsmouth Hants
    Posts : 769
    Windows 8.1 Pro with Media Center
    UK uk mercia


    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
    baarod's Avatar

    Windows 8 Convert


    Join Date : Mar 2010
    Odell
    Posts : 60
    Windows 8CP
    USA us illinois


    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
    jimbo45's Avatar

    Senior Member



    Join Date : Sep 2011
    Hafnarfjörður IS
    Posts : 4,267
    Linux Mint KDE 16, W8.1, W7, W2K3 Server
    Iceland


    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
File History - How to Use in Windows 8 Tutorials
Windows 8 CP ISO install error... cant locate file... Installation & Setup
Solved Windows 8 messed up file permisions General Support
The mystery of Windows 8 and the new 'Protogon' file system Windows 8 News
Eight Forums Android App Eight Forums IOS App Follow us on Facebook

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23