Im in winPE trying to use:
dism /image:d:\ /cleanup-image /restorehealth /source:d:\tempon an offline image but cannot get past this error:
"Dism error 87 “cleanup-image option is unknown”. I did the exact same procedure on windows 8 and a separate fresh install of windows 10 with no issues at all.
I've gone through all the Microsoft articles about dism i could find, many sites, and forum posts outlining the same handful of procedures that are supposed to fix this and other issues but don't seem to work half the time.
Supposedly error 87 is a syntax issue but this clearly doesn't apply to my situation. The error occurs with other options as well, /scanhealth, /checkhealth, /restorehealth, it isn't limited to just /cleanup-image.There appears to be no proven solution to this problem, if so its very hidden.
Any suggestions?
41 Answer
I was able to get it working, although im still not sure what the issue was. I decided to start the whole thing over again, deleted the wim i had copied over from the disc and deleted the folder i had mounted the image to. I ran the exact same commands id been running. My only guess is that an error occurred the first time when copying the wim from the disc or while mounting the image.