10
4
I am trying to fix an issue with Windows registry and services. I tried running sfc command but this is the error message I get?
C:\Windows>sfc /scannow
Beginning system scan. This process will take some time.
There is a system repair pending which requires reboot to complete. Restart
Windows and run sfc again.
C:\Windows>
But I have rebooted several times since this message first appeared, and I even tried running the command in safe mode and in console mode but I still get the same message. How do I get rid of it?
There is this file in winsxs folder: C:\Windows\winsxs\cleanup.xml
This is it's content:
<?xml version='1.0' encoding='utf-16'?>
<PendingTransaction >
<POQ postAction="NoReboot">
<DeleteFile path="\??\D:\$$DeleteMe.CbsMsg.dll.01c85bd2f5893b40.0000"/>
</POQ>
</PendingTransaction>
Could this be something? Is this the cause? Is it safe to delete this file?
Update
I tried renaming it but the operation failed.
I ran the explorer.exe with elevated privileges and navigated to the location. I got the UAC confirmation prompt and then the error below.
Destination Folder Access Denied
You need permission to perform this action
How do I rename or delete this file? Do I need to use cmd or be in safe mode to do it?
Update 2
I started safe mode with command prompt and tried taking ownership of the file and then renaming it. Rename failed.
C:\Windows\winsxs>ren cleanup.xml cleanup.xml.old
Access is denied.
C:\Windows\winsxs>takeown /f "cleanup.xml"
SUCCESS: The file (or folder): "C:\Windows\winsxs\cleanup.xml" now owned by user
"mycomputername\username".
C:\Windows\winsxs>ren cleanup.xml cleanup.xml.old
Access is denied.
C:\Windows\winsxs>
I also issued following command.
C:\Windows\system32>icacls "C:\Windows\winsxs\cleanup.xml" /grant username:F
processed file: C:\Windows\winsxs\cleanup.xml
Successfully processed 1 files; Failed processing 0 files
C:\Windows\system32>cd ..\winsxs
C:\Windows\winsxs>ren cleanup.xml cleanup.xml.old
Access is denied.
C:\Windows\winsxs>
It still won't allow me to rename it. I issued these last two commands in normal Windows mode. Does it matter?... I will try a reboot.
I am having the same issue, but I do not have a
cleanup.xml
file, so I don't think that is the cause. – BlueRaja - Danny Pflughoeft – 2015-07-08T07:56:18.240@BlueRaja As I recall, it did have something to do with cleanup, but you may not need to have this file to know that you have this problem. Have a look at the second answer. The registry trick may work for you. I ended up doing a repair install if I remember correctly. So I didn't get to try that. – Samir – 2015-07-08T10:48:57.873
Problem solved, by performing a repair install.
– Samir – 2013-06-18T10:25:28.303