Where is the WIM file?!?!?!?!?


  1. Posts : 6
    Windows 10
       #1

    Where is the WIM file?!?!?!?!?


    Hi,

    Simple question, really. Hopefully, a simple answer.

    Where is the .WIM file of a running Windows 10 system located? The image that DISM /online refers to?

    In other words, if I wanted to make an offline change with DISM by booting the PC from a flash drive, how do I point DISM to the correct image?

    So how do I tell what the path is to the wim of the currently running online image, so I can correctly refer to it offline?

    Thanks.
      My Computer


  2. Posts : 31,700
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #2

    dbdan22 said:
    Where is the .WIM file of a running Windows 10 system located? The image that DISM /online refers to?

    There is no .wim file in an installed Windows 10. To use the /source option with DISM you need a Windows install ISO or USB for the version of Windows you are repairing (2004, 21H1, etc). The file you need is its install.wim found in the sources folder. If you have an ISO/USB made by the Media Creation Tool it will have an install.esd instead of an install.wim, but DISM can use that too. See part 6 or part 7 in this tutorial for more on this...

    Use DISM to Repair Windows 10 Image
      My Computers


  3. Posts : 15,499
    Windows10
       #3

    There is not a wim file in runningWindows. The wim file is part of the Windows pre environment as part of the installation package. Think of it like a zip file that gets extracted during installation.
      My Computer


  4. Posts : 1
    Win 10, Win 11, MS Server 2016, 2022, Ubuntu KDE and Ubuntu server
       #4

    If there is no WIM (or ESD) file in running Windows 10, DBDan22's question still stands; what is repaired when you do an online DISM restorehealth and where do you find it? I have inherited a bunch of PCs with Windows Enterprise and one is buggy. SFC won't complete as there is corruption in the device's own internal running copy of WIM, ESD or similar and I am loathe to wipe it. Something about it is preventing it from using Windows Update for a source and I can't lay hands on the correct copy of Win 10 Enterprise to extract a good wim file from, to do "dism /online /cleanup-image /restorehealth /source:C:\path\to\wimfile.wim" . So, I have installed the SSD as drive D in a PC with no corruption in its repair-store.

    The command I think I want to run is something like:
    Code:
    dism /image:D:\path_to\corrupt-recovery-files\ /cleanup-image /restorehealth /source:C:\path_to\verified-recovery-files
    What paths to files do I use?

    Answering my own question... partly at least. Start the command
    Code:
    dism /image:D\ /cleanup-image /restorehealth
    and if the PC I'm using to fix is on the same edition of Windows and has a reliable source (its own repair files or Windows Update), it'll work.

    - - - Updated - - -

    This is how I got it to work:
    Code:
    dism /image:D:\ /cleanup-image /restorehealth /source:C:\windows
      My Computer


  5. Posts : 5,330
    Windows 11 Pro 64-bit
       #5

    If Windows 10 or Windows 11 has missing or corrupted system files, in this video, i will guide you how to repair the corrupted system files using the DISM and SFC command tools from Windows Recovery Environment.

      My Computer


 

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




Windows 10 Forums