I really appreciate you trying to help. I must be cursed. I used Rufus to download the latest version and had it create a bootable USB. From that command prompt, I verified using bcdedit that my osdrive is C: so my command was:
X:\sources> dism /image:C:\ /cleanup-image /restorehealth /source:D:\sources\install.wim /scratchdir:C:\temp
Note: When the USB boots it's in X: and the install.wim does not exist under X:\sources. It does exist on the USB drive at D:\sources so that's what I used.
It blew up. The dism log file has:
2022-12-22 17:31:54, Error DISM DISM Proxy Image Session: PID=1304 TID=1308 Failed to get the provider store from the image session object. - CProxyImageSession::InitializePointers(hr:0x800700c1)
2022-12-22 17:31:54, Error DISM DISM Manager: PID=1304 TID=1308 Failed to load the image session from the temporary location: C:\Temp\2A66A06F-918C-4051-A502-12DB478AEE0A - CDISMManager::CreateImageSession(hr:0x800700c1)
2022-12-22 17:31:54, Error DISM DISM.EXE: Could not load the image session. HRESULT=800700C1
2022-12-22 17:31:54, Error DISM DISM.EXE: Unable to start the servicing process for the image at 'C:'. HRESULT=800700C1
What does it mean it cannot load the image session?
Why aren't these !(@*&#(!* tools doing anything?