A DISM repair-source index is the number of an edition inside a particular image file. It isn't a permanent number for Windows 11 Pro or Home. List the images in your own install.wim, choose the matching edition and check the source's release, architecture, language and servicing level before running the repair.
First decide whether you need a local source
For the currently running Windows installation, the normal repair command is:
DISM /Online /Cleanup-Image /RestoreHealthMicrosoft's repair-source guidance identifies Windows Update as the default source when policy permits it. A local source is useful when the required files can't be obtained that way or the machine must remain offline. /Online means the running operating system; it doesn't prohibit a local source.
Record the original error before adding options. If the problem is a percentage that hasn't moved, use the DISM progress checks first. Don't start a source-based repair while another servicing operation is still active.
Record the Windows installation you're repairing
Open Settings > System > About and note the edition, version, OS build and system type. Check the installed Windows display language as well. On a managed PC, ask the administrator for its approved repair source rather than substituting a random consumer ISO.
To read the current edition from an administrator Command Prompt, use:
DISM /Online /Get-CurrentEditionMicrosoft documents this read-only query in the edition-servicing reference. You don't need /Set-Edition or a product-key command to identify an edition. Changing the installed edition to make a repair command fit is the wrong direction.
List the WIM instead of guessing its index
Mount the trusted Windows ISO and inspect its sources folder. In the following example, the mounted media is D: and actually contains install.wim. Replace the drive letter with yours:
DISM /Get-ImageInfo /ImageFile:D:\sources\install.wimThe DISM image-management reference documents this inventory command. Read the edition names and their indexes. Then inspect the candidate in detail. For example, only if your list identifies index 6 as the matching edition:
DISM /Get-ImageInfo /ImageFile:D:\sources\install.wim /Index:6The number 6 here is an example, not a Windows 11 Pro rule. In a Spiceworks source-failure case, the unanswered question was whether index 1 had been checked or simply copied. A Server guide's index is no better for a Windows 11 desktop.
If the media has install.esd, don't rename it to install.wim. File formats and source syntax matter. Use a documented route for that actual file or obtain an appropriate WIM/mounted-image source from the administrator. Likewise, boot.wim is not a substitute for the installed Windows edition merely because it is a WIM file.
A correct index can still point to unsuitable files
Check the Windows release, edition, architecture and required language components. Matching a name in the list is only one part of source selection. Microsoft warns that a target patched beyond its source may need updated files that aren't in that source, and that missing language components can make restoration fail.
I would resolve that mismatch before trying different index numbers. A newly downloaded ISO isn't proof that it contains every file required by a more recently serviced installation. Microsoft's guidance discusses maintaining a source with servicing updates; on an organization-managed system, that belongs with the deployment administrator.
Don't download an unknown “fully updated” Windows image from a forum or file-sharing service. Keep the source provenance and its inventory output with your repair notes. They make a failed attempt diagnosable.
Build the command from the verified path and index
For a verified WIM source, Microsoft's syntax requires the wim: prefix and the chosen image index. If your real drive is D and your matching image is index 6, the example becomes:
DISM /Online /Cleanup-Image /RestoreHealth ^
/Source:wim:D:\sources\install.wim:6Use your actual values. A typo in the path, an absent file or an index copied from another ISO can all make this unusable. If a path contains spaces, quote the entire source argument, for example "/Source:wim:D:\Repair Media\install.wim:6".
Add /LimitAccess only when you deliberately want to prevent Windows Update from being used as a source or fallback. The Microsoft image-repair instructions explain that restriction. It doesn't fix an incompatible source; it can leave DISM with nowhere else to obtain the missing files.
These commands target the running Windows installation. In Windows Recovery or Windows PE, the installed OS is an offline target, drive letters can differ and an encrypted volume may need its recovery key. Don't paste the desktop command there and assume it targets the installation on disk. Have the offline target and source checked separately.
Read the result before choosing another repair
Wait for the final message. On success, run sfc /scannow as administrator and retest the original problem. If 0x800f081f remains, save the exact command, image inventory, OS details and the relevant DISM.log/CBS.log error lines. Remove private identifiers before sharing copies.
The older Microsoft Q&A thread includes a later report of the same source error after cleanup advice. Cleanup completion isn't proof of a suitable source. Don't delete component-store packages, reset the servicing baseline or grant broad folder permissions to chase an index error.
After the failed operation has ended and any required restart is complete, consider the Windows 11 repair-install routes. Back up files and retain the recovery key before proceeding. Where available, the Windows Update reinstall option is separate from Reset this PC:



