sfc is showing pending reboot

Apurva Pathak 640 Reputation points
2024-09-10T07:44:22.5633333+00:00

Hi folks,

I was trying to fix some OS corruptions of a Azure hosted Win2016 box, I ran sfc /scannow and it showed me that it has detected and fixed some corruptions and my VM needs to be restarted.

Now, I have rebooted my VM 6 times at least but this message doesn't go away.

  • I have tried deleting pending.xml but no help.
  • I am unable to find any 'RebootPendingKey' in registries at "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion."

sfc status:User's image

Registry:

User's image

Could anyone please suggest me the way forward to fix this.

Thanks in advance!

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,603 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,726 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Hania Lian - MSFT 22,461 Reputation points Microsoft External Staff
    2024-09-12T08:57:44.0233333+00:00

    Hello,

    Try to revert pending actions via dism command

    1. Access to an elevated command prompt either in normal or safe mode. If you cannot boot into windows, you may need to run it from the Windows Recovery Console.

    2. Execute the command: dism.exe /image:C:\ /cleanup-image /revertpendingactions.

    3. Reboot your machine into safe mode.

    4. In the safe mode, open an elevated Command Prompt and run the “sfc/scannow” command again.

    5. Then reboot the computer in normal mode and execute the DISM with /online option.

    Best Regards,

    Hania Lian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  2. Apurva Pathak 640 Reputation points
    2024-09-12T09:08:25.7433333+00:00

    I deleted the pending.xml file and removed RebootPending registry which fixed the issue.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.