Use DISM to Repair Windows 10 Image  

Page 35 of 84 FirstFirst ... 25333435363745 ... LastLast

  1. Posts : 119
    Windows 10
       #340

    bishaway said:
    Update: managed to get hold of an iso 10586 build but still getting not found, only difference between my windows and the ISO is the language there is 3 rather then the standard english US..is that still problemtic?
    If you use DISM to export the install.wim file from your 10586 ISO to a new install.wim (using /compress:max to convert it to a usable compression) the wim file you create could then be used as a source for repair.

    But your problem booting (if you still haven't fixed it after a week) sounds like something different. If you want to see if Windows will boot, you can create a bootable USB stick with a temporary BCD on it which points to your Windows folder on the hard disk. This lets you see if the issue is your System partition (because you have created a substitute System partition on the USB stick).

    If you boot the PC with a Windows 10 install USB or DVD, use SHIFT-F10 to get a Command Prompt from the first screen that comes up. Run Diskpart and then list volume to figure out what letter your Windows partition currently has (it can change in this mode). Also note the letter for the USB stick and replace it with a small stick that you can format.

    You can format the USB as FAT32. You have to mark the USB Active with Diskpart if you have a Legacy BIOS, but not if you have UEFI.

    If you then exit Diskpart, you can create the BCD on the USB stick. If your \Windows partition is on D: and the USB is F: use these commands (replace C: and F: below with whatever letters you found in Diskpart):
    bootsect /nt60 F: /force /mbr ← prepares the USB stick in F: to be bootable
    bcdboot C:\Windows /s F:
    ← creates the BCD on F:, but points it to boot your Windows on the hard disk

    bootsect /help explains the options used.
    bcdboot /? explains options used.

    Now boot your PC from this USB stick. If this USB gets Windows to run from your hard disk, it shows that you just need to fix your hard disk System partition.
      My Computer


  2. Posts : 116
    Windows 10
       #341

    DonCuthbert said:
    ....If you want to see if Windows will boot, you can create a bootable USB stick with a temporary BCD on it which points to your Windows folder on the hard disk. This lets you see if the issue is your System partition (because you have created a substitute System partition on the USB stick).
    That sounds like a useful approach, Don. I don't do repairs frequently enough that I can recall all the shorthand for programs I've come across. Please remind me what BCD is or means; and although your description might be enough for some to understand what to do, could you cite a good web page that will give more complete instructions for the use of BCDboot and how it would apply here?

    Thanks,
    Michael
      My Computer


  3. Posts : 119
    Windows 10
       #342

    bilateral said:
    That sounds like a useful approach, Don. I don't do repairs frequently enough that I can recall all the shorthand for programs I've come across. Please remind me what BCD is or means; and although your description might be enough for some to understand what to do, could you cite a good web page that will give more complete instructions for the use of BCDboot and how it would apply here?

    Thanks,
    Michael
    BCD is the Boot Configuration Database. Since Windows Vista, this has replaced the previous Windows NT boot method which used boot.ini and NTLDR. If you run bcdedit /enum ALL it will show you a lot of the detail contained in the BCD. It is used in both Legacy and UEFI BIOS mode systems. Here is a link to some general info: https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

    BCDBoot automates building a BCD from scratch. So I was suggesting that you can create a USB that will boot the computer, but still point to the Windows on the hard disk and boot Windows there. If it works and Windows fires up properly, then you just need to repair the System partition on the hard disk, where the BCD is. The BCD is a single file on the system partition: \Boot\BCD.
    https://msdn.microsoft.com/en-us/win...or=-2147217396
      My Computer


  4. Posts : 116
    Windows 10
       #343

    Ok, thanks, now I think I understand. And I will check out those links. I thought you were talking about an outside program, not a MS one that is part of Windows. I think you're saying that once you've made a BCDBoot disk, this will allow you to determine quickly if the problem is with the booting process or with something else in the Windows directory, or on that partition. Correct?

    Question then: Can this disk or USB stick be used for any computer with the same edition of Windows installed (say Win 10 x64), so long as they are all set up on the same partition on each computer (C: for example) and use the same directory structure; or does a USB or CD need to be made for each individual computer, even if it's basically the same system?

    Michael
      My Computer


  5. Posts : 3
    windows 10
       #344

    DonCuthbert said:
    If you use DISM to export the install.wim file from your 10586 ISO to a new install.wim (using /compress:max to convert it to a usable compression) the wim file you create could then be used as a source for repair.

    But your problem booting (if you still haven't fixed it after a week) sounds like something different. If you want to see if Windows will boot, you can create a bootable USB stick with a temporary BCD on it which points to your Windows folder on the hard disk. This lets you see if the issue is your System partition (because you have created a substitute System partition on the USB stick).

    If you boot the PC with a Windows 10 install USB or DVD, use SHIFT-F10 to get a Command Prompt from the first screen that comes up. Run Diskpart and then list volume to figure out what letter your Windows partition currently has (it can change in this mode). Also note the letter for the USB stick and replace it with a small stick that you can format.

    You can format the USB as FAT32. You have to mark the USB Active with Diskpart if you have a Legacy BIOS, but not if you have UEFI.

    If you then exit Diskpart, you can create the BCD on the USB stick. If your \Windows partition is on D: and the USB is F: use these commands (replace C: and F: below with whatever letters you found in Diskpart):
    bootsect /nt60 F: /force /mbr ← prepares the USB stick in F: to be bootable
    bcdboot C:\Windows /s F:
    ← creates the BCD on F:, but points it to boot your Windows on the hard disk

    bootsect /help explains the options used.
    bcdboot /? explains options used.

    Now boot your PC from this USB stick. If this USB gets Windows to run from your hard disk, it shows that you just need to fix your hard disk System partition.
    Thanks for your detailed assistance. Well it was a complicated issue, I did already try and create a new WIM file but still didn't have luck. But basically windows did boot up but just started flickering continuously on the login screen. I was able to use a redirect method that when I activate the keyboard assistant to launch the CMD and then kept playing around with stuff until eventually I could login and do a repair install.

    the boot method you describe is pretty handy though so I'll keep that in my bookmarks. :)
      My Computer


  6. Posts : 70
    Windows 10 Pro, Ubuntu 18.04 LTS
       #345

    bishaway said:
    Basically windows did boot up but just started flickering continuously on the login screen. I was able to use a redirect method that when I activate the keyboard assistant to launch the CMD and then kept playing around with stuff until eventually I could login and do a repair install.
    bishaway, as I have this/similar situation often after test restoring my windows 10 backups, could you please give a bit more information on how you managed to finally get logged in enough to get to the repair install.
    thanks!
      My Computers


  7. Posts : 6
    Windows 10 ver. 1607 build 14393.351
       #346

    Hello Brink,
    Brilliant write up!! I will stash this away in my toolbox for future use.

    At the moment, I am experiencing SFC failure and the command in steps 4-7 fail about 50% through or sooner with "Error 5 Access is Denied" in both CMD and PS. Any thoughts?
      My Computer


  8. Posts : 68,652
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #347

    Hello Nightspear, and welcome to Ten Forums. :)

    Are you running in an elevated command prompt?
      My Computers


  9. Posts : 6
    Windows 10 ver. 1607 build 14393.351
       #348

    Brink said:
    Hello Nightspear, and welcome to Ten Forums. :)

    Are you running in an elevated command prompt?
    Yes I am using an elevated command prompt. I also have tried PS using Admin privileges. They both fail anywhere from 49% to 51% through the /scanhealth(50.4%) and the /restorehealth (49.9%) options. Both fail with "error 5 access denied."
      My Computer


  10. Posts : 68,652
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #349

    In that case, you might see if running it in the built-in Administrator account may work better.

    If not, then you could do a repair install to fix them without losing anything.

    Repair Install Windows 10 with an In-place Upgrade
      My Computers


 

Tutorial Categories

Use DISM to Repair Windows 10 Image Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:13.
Find Us




Windows 10 Forums