User Tools

Site Tools


wiki:run_dism_restorehealth_against_iso_dvd

This is an old revision of the document!


If the DISM /restorehealth command is failing

C:\WINDOWS\system32>dism /online /cleanup-image /restorehealth

Deployment Image Servicing and Management tool
Version: 10.0.20348.681

Image Version: 10.0.20348.2322
Error: 0x800f081f

The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see https://go.microsoft.com/fwlink/?LinkId=243077.

You can try running the command against mounted ISO or DVD

Look first for the installed version on your computer with following command:

Get-ComputerInfo |select WindowsProductName,WindowsEditionId,WindowsVersion, OSDisplayVersion   
WindowsProductName           WindowsEditionId WindowsVersion OSDisplayVersion
------------------           ---------------- -------------- ----------------
Windows Server 2022 Standard ServerStandard   2009           21H2

Once done, check on your DVD the corresponding version:

get-windowsimage -imagepath "Z:\sources\install.wim"


ImageIndex       : 1
ImageName        : Windows Server 2022 Standard
ImageDescription : (Recommended) This option omits most of the Windows graphical environment. Manage with a command
                   prompt and PowerShell, or remotely with Windows Admin Center or other tools.
ImageSize        : 8.416.492.456 bytes

ImageIndex       : 2
ImageName        : Windows Server 2022 Standard (Desktop Experience)
ImageDescription : This option installs the full Windows graphical environment, consuming extra drive space. It can be
                   useful if you want to use the Windows desktop or have an app that requires it.
ImageSize        : 14.458.036.087 bytes

ImageIndex       : 3
ImageName        : Windows Server 2022 Datacenter
ImageDescription : (Recommended) This option omits most of the Windows graphical environment. Manage with a command
                   prompt and PowerShell, or remotely with Windows Admin Center or other tools.
ImageSize        : 8.411.088.481 bytes

ImageIndex       : 4
ImageName        : Windows Server 2022 Datacenter (Desktop Experience)
ImageDescription : This option installs the full Windows graphical environment, consuming extra drive space. It can be
                   useful if you want to use the Windows desktop or have an app that requires it.
ImageSize        : 14.452.520.910 bytes

Run then the DISM command using following parameter:

C:\WINDOWS\system32>dism /online /cleanup-image /restorehealth /source:wim:Z:\sources\install.wim:2 /limitaccess

Deployment Image Servicing and Management tool
Version: 10.0.20348.681

Image Version: 10.0.20348.2322

[==========================100.0%==========================] The restore operation completed successfully.
The operation completed successfully.

Match the WIM number noted in previous step

wiki/run_dism_restorehealth_against_iso_dvd.1717059998.txt.gz · Last modified: by wagner.jer

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki