How to fix error message "There Is System Repair Pending Which Requires Reboot To Complete. Restart Windows And Run SFC Again"?

How to fix error "there is system repair pending which requires reboot to complete"?

If you run windows update manually or run sfc /scannow command on the server/machine and get the subjected error even after several reboot, getting the same error message. Perform the quick magic-

At an elevated command prompt:

Take ownership of the folder/file:  takeown /f <Path_And_File_Name>

takeown /f C:\windows\winsxs\pending.xml

Now grant full access to the file:  

icacls <Path_And_File_Name> /grant Administrators:F

icacls C:\windows\winsxs\pending.xml /grant Administrators:F

Then delete that file with below command-

del C:\windows\winsxs\pending.xml 

Here you go! Now you can run sfs /scannow and windows update without any error.

Sometimes, if you want to replace any other corrupted files, so you can have the below command to get the required result. If you want to replace the file with a known good copy from other server/machine. Below command will help you-

Copy "Copy Path_And_File_Name_Of_Source_File Path_And_File_Name_Of_Destination"


How to Reset OR Recover Windows server Password with Installation DVD media?

Need to follow below steps in order to recover or reset windows machine's password-

Insert the installation disk to your locked computer and then restart. When following interface appears. Click “Repair your computer”.

A dialog with several options pops up, click Command Prompt.

When a Command Prompt black screen appears, type d: then enter

Cd windows\system32

Move setch.exe setch.exe.bak

Copy cmd.exe setch.exe and then reboot

On the login screen, tap Shift key five times and you'll see a command prompt screen in administrator mode. OK,

type "net user UserName * Then it will ask for Change the password. In my case it is net user administrator *

NOTE : This article will work for all servers

For any further help, please reach out to us at NOCAGILE