dism.exe commands in windows server 2008 R2

Posted on 2014-08-22
Last Modified: 2014-09-29
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.
Question by:Mohlalefi
    LVL 89

    Accepted Solution

    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.

    Author Comment

    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.
    LVL 89

    Expert Comment

    by:John Hurst
    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.
    LVL 89

    Expert Comment

    by:John Hurst
    @Mohlalefi  - Thank you and I was happy to help.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    We recently had an issue where out of nowhere, end users started indicating that their logins to our terminal server were just showing a "blank screen." After checking the usual suspects -- profiles, shell=explorer.exe in the registry, userinit.exe,…
    I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
    This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
    This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now