• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3194
  • Last Modified:

dism.exe commands in windows server 2008 R2

Am I missing something with the commands below?

1. dism.exe /image: <drive letter>: \ /cleanup-image /revertpendingactions

2. sfc /scannow /offbootir= <drive letter>:\/offwindir=<drive letter>:\windows

the first command gives the message--missing servicing command.
the second command does not run successfully either.
  • 3
1 Solution
John HurstBusiness Consultant (Owner)Commented:
On my Windows 8.1 machine, I did the following:

DISM.exe /Online /Cleanup-image /Scanhealth which took a while to run and said files could be fixed.
and then
DISM.exe /Online /Cleanup-image /Restorehealth which took another long while and fixed the files.

Then SFC ran without errors.

You might try the first command to scan and see if it produces results. I have not used the revert command you posted above.
MohlalefiAuthor Commented:
John, where did you run the commands from ? I cannot log on to my Windows server 2008 R2, and I am running these commands from the system recovery options cmd prompt, in an attempt get bad patches off my image.
John HurstBusiness Consultant (Owner)Commented:
Hmmm, you did not mention you could not log on. I ran the commands from a command window in a running system.

The subcommands I posted are DISM commands like you are running. Try the restorehealth command to see if it run or if it produces the same error.
John HurstBusiness Consultant (Owner)Commented:
@Mohlalefi  - Thank you and I was happy to help.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now