Use DISM to Repair Windows 10 Image  

Page 13 of 84 FirstFirst ... 311121314152363 ... LastLast

  1. Posts : 27,157
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #120

    balubeto said:
    Now, it works.

    This command also works to repair the Windows components of an offline image of Windows 10 or should I change something To do this?

    If I had to change this command what changes should I make?

    Thanks

    Bye
    You might have to wait for @Brink for this question, I'm not sure if you would just have to add "/limitaccess"
    at the end or if there is more to it than that, sorry.
    But here are a couple of sources:
    Add or Remove Packages Offline

    Repair a Windows Image

    Manage the Component Store
      My Computers


  2. Posts : 307
    Windows 10
       #121

    Cliff S said:
    You might have to wait for @Brink for this question, I'm not sure if you would just have to add "/limitaccess"
    at the end or if there is more to it than that, sorry.
    But here are a couple of sources:
    Add or Remove Packages Offline

    Repair a Windows Image

    Manage the Component Store
    Ok, I will wait the @Brink response?

    Thanks

    Bye
      My Computer


  3. Posts : 5,478
    2004
       #122

    balubeto said:
    Now, it works.

    This command also works to repair the Windows components of an offline image of Windows 10 or should I change something To do this?

    If I had to change this command what changes should I make?

    Thanks

    Bye
    Hi there, you are asking the same questions in many different places (both here and other forums). Is there something you want to do that is failing or are you just curious?

    It is all explained in the documentation I referred you to in this thread Info on the Windows components store - Windows 10 Forums but basically you can use dism to service any offline image using /image (and yes you can specify which index before you ask :) ) based on the source specified on /source

    In fact anything you can do to your online image you can do an offline image - but not the other way around - only a subset are available online as described in the documentation:

    If you are servicing a running computer, you can use the /Online option instead of specifying the location of the offline Windows image. The commands and options that are available for servicing an image depend on which Windows operating system you are servicing. They also depend on whether the image is offline or a running operating system. All commands work on an offline Windows image. Subsets of the commands are available for servicing a running operating system.
    DISM Global Options for Command-Line Syntax - Windows 10 hardware dev

    The source (if specified) has to contain the components required so you can't specify a source that has a different version but really you need not specify source unless Windows update doesn't work.

    If you do not specify a /Source for the repair files, the default location for Features on Demand is used. For more information, see Configure a Windows Repair Source. If you specify more than one /Source, the files are copied from the first location where they are found and the rest of the locations are ignored. You can use /LimitAccess to prevent the DISM tool from using Windows Update as a repair source or as a backup repair source for online images.
    Repair a Windows Image - Windows 10 hardware dev

    If something you are trying is not working please post the command you used and the results from %windir%\Logs\DISM\dism.log
      My Computer


  4. Posts : 4,124
    Windows 3.1 to Windows 11
       #123

    Dism /Image:C:\offline /Cleanup-Image /RestoreHealth /Source:c:\mount\windows
      My Computer


  5. Posts : 421
    Windows 10 Home 64-bit, 22H2 19045.3636
       #124

    Hi. I just finished downloading a Windows 10 ISO for the purpose of repairing a corrupted Windows 10 image (reported by DISM), but during the download I realized that there was no information regarding the build number. Can you help me with that or do I need to go to Microsoft, or is it not even an issue. The build number installed on my laptop is 10240, if that helps. (In case you're wondering why I didn't already have an ISO for backup purposes, it's because I used I used Lenovo's OneKey Recovery feature, which doesn't seem to produce any image files.)
      My Computer


  6. Posts : 5,478
    2004
       #125

    gregyurkon said:
    Hi. I just finished downloading a Windows 10 ISO for the purpose of repairing a corrupted Windows 10 image (reported by DISM), but during the download I realized that there was no information regarding the build number..
    You need the correct build but if you downloaded from Microsoft it will be 10240 (unless you are an insider and specifically requested the latest preview build in which case it will be 10565).

    You can check the version as follows:
    • mount the ISO and note and note the letter. In my case it is k
    • From elevated cmd prompt dism /get-wiminfo /wimfile:k:\sources\install.wim
    • If there is more than one index pick the one you want dism /get-wiminfo /wimfile:k:\sources\install.wim /index:1

    Code:
    Microsoft Windows [Version 10.0.10576]
    (c) 2016 Microsoft Corporation. All rights reserved.
    
    C:\Windows\system32>dism /get-wiminfo /wimfile:k:\sources\install.wim
    
    Deployment Image Servicing and Management tool
    Version: 10.0.10576.0
    
    Details for image : k:\sources\install.wim
    
    Index : 1
    Name : Windows 10 Pro
    Description : Windows 10 Pro
    Size : 13,736,528,128 bytes
    
    Index : 2
    Name : Windows 10 Home
    Description : Windows 10 Home
    Size : 13,635,081,189 bytes
    
    The operation completed successfully.
    
    C:\Windows\system32>dism /get-wiminfo /wimfile:k:\sources\install.wim /index:1
    
    Deployment Image Servicing and Management tool
    Version: 10.0.10576.0
    
    Details for image : k:\sources\install.wim
    
    Index : 1
    Name : Windows 10 Pro
    Description : Windows 10 Pro
    Size : 13,736,528,128 bytes
    WIM Bootable : No
    Architecture : x64
    Hal : acpiapic
    Version : 10.0.10240
    ServicePack Build : 16384
    ServicePack Level : 0
    Edition : Professional
    Installation : Client
    ProductType : WinNT
    ProductSuite : Terminal Server
    System Root : WINDOWS
    Directories : 18986
    Files : 94284
    Created : 10/7/2015 - 14:25:50
    Modified : 10/7/2015 - 14:26:24
    Languages :
            en-US (Default)
    
    The operation completed successfully.
    
    C:\Windows\system32>
      My Computer


  7. Posts : 421
    Windows 10 Home 64-bit, 22H2 19045.3636
       #126

    I followed your instructions for checking the ISO's build number, and all of the fields which had any meaning to me match my OS, but I have two further issues regarding the tutorial. The "elevated command prompt" link goes to the wrong article (which at least contains a link to the right article), and the correct instruction for the next step seems to be "Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:<Full Path to install.wim file>:1". My issue is with that "1" at the end. Since the correct index in my case is 2, should I change that "1" to a "2"? (Trial and error sounds rather dangerous in this case, otherwise I'd have already found the answer.)
      My Computer


  8. Posts : 5,478
    2004
       #127

    That's right - change the 1 to a 2. It isn't dangerous - it will just say "source not found" if you use the wrong index (or wrong wim) and it wants to repair something.
      My Computer


  9. Posts : 4,124
    Windows 3.1 to Windows 11
       #128

    You can also keep it as index 1
    There is No need to change index to 2
      My Computer


  10. Posts : 421
    Windows 10 Home 64-bit, 22H2 19045.3636
       #129

    I'm happy to report that running DISM with the correct RestoreHealth and Source options yielded two "...completed successfully" messages and subsequently running it with ScanHealth found no corruption.
      My Computer


 

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 04:01.
Find Us




Windows 10 Forums