SFC /SCANNOW Command - System File Checker

How to Repair Windows 7 System Files with System File Checker


   Information
The sfc /scannow command (System File Checker) scans the integrity of all protected Windows 7 system files and replaces incorrect corrupted, changed/modified, or damaged versions with the correct versions if possible.

   Tip
If you get the Windows Resource Protection Could Not Start the Repair Service error when trying to run SFC, then make sure that the Windows Modules Installer service is enabled, click on Start, and set to Manual.

Services - Start or Disable

OR

Copy and paste the command below in the elevated command prompt, and press Enter. After the Windows Modules Installer service has started, try running the SFC command again

net start trustedinstaller

   Note
The KB3022345, KB3035583, and KB3068708 updates will cause SFC to give you a false mismatch message in SFC for files related to these updates.

You can safely ignore these results in your SFC details since it will not affect SFC from being able to repair other system files.

   Warning
Be aware that if you have modified your system files as in theming explorer/system files, running sfc /scannow will revert the system files such as explorer.exe back to it's default state. Make the appropriate backups of your system files that you have modified for theming if you wish to save them before running sfc /scannow.



:note: For the updated Windows 10 tutorial, please see - SFC Command - Run in Windows 10 - Windows 10 Tutorials

CONTENTS:
  • Option One: To Run the SFC /SCANNOW Command at Boot
  • Option Two: To Run the SFC /SCANNOW Command in Windows 7
  • Option Three: How to See and Read Only the "SFC" Scan Results from the CBS.LOG



OPTION ONE

To Run the SFC /SCANNOW Command at Boot


1. For how, see METHOD TWO at this link: SFC /SCANNOW : Run in Command Prompt at Boot

   Note
Using OPTION TWO below is recommended if able.

If you would like to get help with your SFC issue, then be sure to upload and attach your sfcdetails.txt file from OPTION THREE below in your post.





OPTION TWO

To Run the SFC /SCANNOW Command in Windows 7


1. Open an elevated command prompt or an elevated PowerShell, and do step 2 or 3 below for what type of scan you would like to run.


2. To Scan and Repair System Files
NOTE: Scans the integrity of all protected system files and repairs the system files if needed. Please see red WARNING box at the top of this tutorial.
A) In the elevated command prompt, type sfc /scannow, press Enter, and go to step 4 below. (see screenshot below)
NOTE: This may take a little bit to finish.

Command-1.jpg
3. To Only Verify if the System Files are Corrupted
NOTE: Scans and only verifies the integrity of all proteced system files only. This command will not change your system files as in the red WARNING box at the top of this tutorial.
A) In the elevated command prompt, type sfc /verifyonly, press Enter, and go to step 4 below.
4. When the scan is complete, hopefully you will see all is ok like the screenshot below.

   Note

  • If SFC could not fix something, then run the command again to see if it may be able to the next time. Sometimes it may take running the sfc /scannow command 3 or more times to completely fix everything that it's able to.
  • If not, then download and run the 32-bit (x86) or 64-bit (x64) System Update Readiness Tool for your same installed 32-bit or 64-bit Windows 7, restart the PC afterwards, and try the sfc /scannow command again.
  • If still not, then try using OPTION ONE above to run the sfc /scannow command at boot.
  • If still not, then you can attempt to run a System Restore using a restore point dated before the bad file occured to fix it. You may need to repeat doing a System Restore until you find a older restore point that may work.
  • If still not, then you can use the steps in the TIP box in the OPTION THREE section below to manually replace the files that SFC could not fix if there are not to many fix.
  • If there are to many files to manually fix, or you prefer not to use OPTION THREE below, then you could do a repair install without losing anything.
If you would like to get help with your SFC issue, then be sure to upload and attach your sfcdetails.txt file from OPTION THREE below in your post.


Finished.jpg
5. When done, close the elevated command prompt.



OPTION THREE

How to See and Read Only the "SFC" Scan Results from the CBS.LOG



   Note
When SFC runs, it logs it's actions into the C:\Windows\Logs\CBS\CBS.log. The steps in this option will show you how to see only the specific SFC entries with the [SR] tags in this CBS.log. This can be helpful to show you what files SFC could not fix automatically if you wanted to try and manually replace them.

1. Open an "elevated command prompt" (right click -> Run as administrator).

2. In the elevated command prompt, copy and paste the command below, and press Enter. (See screenshot below)
NOTE: This will place a sfcdetails.txt file on your desktop with only the SFC scan result details from the CBS.LOG in it.
Code:
findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"
sfcdetails.jpg
3. Close the elevated command prompt.

4. Open the sfcdetails.txt file on your desktop to see the SFC scan details in the CBS.LOG.

5. You can safely delete the sfcdetails.txt file afterwards if you like.
   Tip
If you need to replace a corrupted system file that SFC cannot fix, then this will show you how to by extracting a new copy directly from your Windows 7 installation DVD.

Extract Files from Windows 7 Installation DVD





That's it,
Shawn









 
Last edited:
Re: Windows Resource Protection unable fix some corrupt files

Thank you Brink, Snick & NoelDP


First in response to Brink



Checked Device Manager - default view (Devices by type). No entries were expanded out (which would have yellow exclamation points), then on View menu, checked "Show hidden devices", found "Non-Plug and Play Drivers" expanded out with yellow exclamation point on "aoddriver" which refers to "aoddriver2.sys which if I'm not mistaken is the AMD Fuel Overdrive driver



Ran "eventvwr.msc" Expanded out "Windows Logs" to "System", scrolled down through events and found an "Error" with red exclamation point, Source - Service Control Manager, Event ID - 7000 :

The AODDriver4.1 service failed to start due to the following error:
The system cannot find the path specified.

Searched registry for AODDriver4.1 entry. Found at :

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\AODDriver4.1]

and

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\AODDriver4.1]

and

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\AODDriver4.1]


The Value data for the ImagePath Value name for all three entries is:

\??\C:\Program Files\ATI Technologies\ATI.ACE\Fuel\amd64\AODDriver2.sys




That folder, subfolders and file no longer exist. The wrong version of AMD Catalyst drivers (which included the Overdrive driver) were installed by mistake and then uninstalled late last year and evidently left an orphan in the registry.




In response to NoelDP


Thank you for your thoughts regarding .NET I am also not very good at repairing .NET




In response to SNICK


Thank you for your evident expertise with this issue.



I downloaded and ran SURTx64. I have attached the CheckSUR.log




Thanks to all of you for your help.


admjgreer
 

Attachments

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavilion dv6-2043us
OS
Windows 7 Home Premium 64 bit
CPU
AMD Turion II Dual-Core Mobile M500
Motherboard
HP
Memory
8 GB
Graphics Card(s)
AMD M880G with ATI Mobility Radeon HD 4200
Hard Drives
TOSHIBA MK3256GSY
WDC WD7500BPKX-60HPJT0
Antivirus
Bitdefender Total Security 2019
Browser
Firefox Quantum 66.0.3 (64-bit)

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
@admjgreer


Would you please post cbs folder, if its over 8 MB you'll have to upload it to a cloud storage service. Limit here 8.95 MB zip, 8.0 MB rar.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Desktop & Compaq Laptop
OS
Win 10 x64, Linux Lite, Win 7 x64, BlackArch, & Kali
Hard Drives
Samsung 850 Pro 256Gb,
Hitachi HDD 1Tb,
Crucial MX SSD 250Gb
Segate 3Tb USB 3.0 Ext. Backup HDD
Internet Speed
150Mbps dn, 20Mbps up
Antivirus
Avast Free, Malwarebytes Anti-Exploit & Anti-Ransomware
Browser
Firefox, Chrome, Opera, & VPN
Well, admjgreer, only had one of your manifests, had to sleuth the others!
Please download View attachment CheckSUR.zip extract CheckSUR folder and paste to: C:\Windows\Temp
Run SURT again, when it completes, post CheckSUR.log and CBS.log both at: C:\Windows\Logs\CBS
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Desktop & Compaq Laptop
OS
Win 10 x64, Linux Lite, Win 7 x64, BlackArch, & Kali
Hard Drives
Samsung 850 Pro 256Gb,
Hitachi HDD 1Tb,
Crucial MX SSD 250Gb
Segate 3Tb USB 3.0 Ext. Backup HDD
Internet Speed
150Mbps dn, 20Mbps up
Antivirus
Avast Free, Malwarebytes Anti-Exploit & Anti-Ransomware
Browser
Firefox, Chrome, Opera, & VPN
Re: Windows Resource Protection unable fix some corrupt files

Snick


My CBS folder is 56 MB.

I don't use a cloud service as I have not needed one.


Will the cbs.log and checksur.log suffice ?



cbslog.zip and checksur.log are attached.


Thanks


admjgreer
 

Attachments

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavilion dv6-2043us
OS
Windows 7 Home Premium 64 bit
CPU
AMD Turion II Dual-Core Mobile M500
Motherboard
HP
Memory
8 GB
Graphics Card(s)
AMD M880G with ATI Mobility Radeon HD 4200
Hard Drives
TOSHIBA MK3256GSY
WDC WD7500BPKX-60HPJT0
Antivirus
Bitdefender Total Security 2019
Browser
Firefox Quantum 66.0.3 (64-bit)
Re: Windows Resource Protection unable fix some corrupt files

Snick


Attached screenshot of CBS folder. If you don't need all of the files, tell me which ones you need.


admjgreer
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavilion dv6-2043us
OS
Windows 7 Home Premium 64 bit
CPU
AMD Turion II Dual-Core Mobile M500
Motherboard
HP
Memory
8 GB
Graphics Card(s)
AMD M880G with ATI Mobility Radeon HD 4200
Hard Drives
TOSHIBA MK3256GSY
WDC WD7500BPKX-60HPJT0
Antivirus
Bitdefender Total Security 2019
Browser
Firefox Quantum 66.0.3 (64-bit)
Yes, those two for now thank you, hopefully the cbs.log will go back far enough.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Desktop & Compaq Laptop
OS
Win 10 x64, Linux Lite, Win 7 x64, BlackArch, & Kali
Hard Drives
Samsung 850 Pro 256Gb,
Hitachi HDD 1Tb,
Crucial MX SSD 250Gb
Segate 3Tb USB 3.0 Ext. Backup HDD
Internet Speed
150Mbps dn, 20Mbps up
Antivirus
Avast Free, Malwarebytes Anti-Exploit & Anti-Ransomware
Browser
Firefox, Chrome, Opera, & VPN
Re: Windows Resource Protection unable fix some corrupt files

Hi Snick


How's it going? Do you need any more information? I'll bet you're buried with work.



Thank you again for your help.



admjgreer
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavilion dv6-2043us
OS
Windows 7 Home Premium 64 bit
CPU
AMD Turion II Dual-Core Mobile M500
Motherboard
HP
Memory
8 GB
Graphics Card(s)
AMD M880G with ATI Mobility Radeon HD 4200
Hard Drives
TOSHIBA MK3256GSY
WDC WD7500BPKX-60HPJT0
Antivirus
Bitdefender Total Security 2019
Browser
Firefox Quantum 66.0.3 (64-bit)
admjgreer
Sorry, yes busy...
Could you post your CBS folder including CBS.Persist.cab files please.
Upload limit here is 8 MB for zip/compressed folder.
You'll have to use OneDrive, Google Drive, Dropbox, A-Drive, i.e. a cloud storage site.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Desktop & Compaq Laptop
OS
Win 10 x64, Linux Lite, Win 7 x64, BlackArch, & Kali
Hard Drives
Samsung 850 Pro 256Gb,
Hitachi HDD 1Tb,
Crucial MX SSD 250Gb
Segate 3Tb USB 3.0 Ext. Backup HDD
Internet Speed
150Mbps dn, 20Mbps up
Antivirus
Avast Free, Malwarebytes Anti-Exploit & Anti-Ransomware
Browser
Firefox, Chrome, Opera, & VPN
Re: Windows Resource Protection unable fix some corrupt files

Thanks SnickI'll be out of town till Saturday May 4.
Will get back to it after then.
admjgreer
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavilion dv6-2043us
OS
Windows 7 Home Premium 64 bit
CPU
AMD Turion II Dual-Core Mobile M500
Motherboard
HP
Memory
8 GB
Graphics Card(s)
AMD M880G with ATI Mobility Radeon HD 4200
Hard Drives
TOSHIBA MK3256GSY
WDC WD7500BPKX-60HPJT0
Antivirus
Bitdefender Total Security 2019
Browser
Firefox Quantum 66.0.3 (64-bit)
Hi Snick. I have zipped my cbs folder and uploaded it my google drive. How do I share it with you?
admjgreer
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavilion dv6-2043us
OS
Windows 7 Home Premium 64 bit
CPU
AMD Turion II Dual-Core Mobile M500
Motherboard
HP
Memory
8 GB
Graphics Card(s)
AMD M880G with ATI Mobility Radeon HD 4200
Hard Drives
TOSHIBA MK3256GSY
WDC WD7500BPKX-60HPJT0
Antivirus
Bitdefender Total Security 2019
Browser
Firefox Quantum 66.0.3 (64-bit)
Hi Snick. I have zipped my cbs folder and uploaded it my google drive. How do I share it with you?
admjgreer

If the ZIP file is less than 8.95 GB, you can directly upload and attach it in your post here.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
The zipped file (CBS folder.zipx) is 30.6 MB.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavilion dv6-2043us
OS
Windows 7 Home Premium 64 bit
CPU
AMD Turion II Dual-Core Mobile M500
Motherboard
HP
Memory
8 GB
Graphics Card(s)
AMD M880G with ATI Mobility Radeon HD 4200
Hard Drives
TOSHIBA MK3256GSY
WDC WD7500BPKX-60HPJT0
Antivirus
Bitdefender Total Security 2019
Browser
Firefox Quantum 66.0.3 (64-bit)
Hi Snick
I have never used a cloud storage service before as I have not had a need to do so. So uploading my CBS folder.zipx to google drive was a new procedure for me and I don't know how to share it either. Please forgive me if I sound stupid. When you get a chance, please write back with instructions. Thank you. admjgreer
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavilion dv6-2043us
OS
Windows 7 Home Premium 64 bit
CPU
AMD Turion II Dual-Core Mobile M500
Motherboard
HP
Memory
8 GB
Graphics Card(s)
AMD M880G with ATI Mobility Radeon HD 4200
Hard Drives
TOSHIBA MK3256GSY
WDC WD7500BPKX-60HPJT0
Antivirus
Bitdefender Total Security 2019
Browser
Firefox Quantum 66.0.3 (64-bit)
Google Drive is cloud storage.
How to Share Google Drive Files & Folders with a Link
On SevenForums you create some text, highlight it, paste the link into the box that appears when you click the world icon which is below the smiley face. Your linked text should appear as the link I provided above, those were the steps I took except I used the address for the page.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Desktop & Compaq Laptop
OS
Win 10 x64, Linux Lite, Win 7 x64, BlackArch, & Kali
Hard Drives
Samsung 850 Pro 256Gb,
Hitachi HDD 1Tb,
Crucial MX SSD 250Gb
Segate 3Tb USB 3.0 Ext. Backup HDD
Internet Speed
150Mbps dn, 20Mbps up
Antivirus
Avast Free, Malwarebytes Anti-Exploit & Anti-Ransomware
Browser
Firefox, Chrome, Opera, & VPN

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavilion dv6-2043us
OS
Windows 7 Home Premium 64 bit
CPU
AMD Turion II Dual-Core Mobile M500
Motherboard
HP
Memory
8 GB
Graphics Card(s)
AMD M880G with ATI Mobility Radeon HD 4200
Hard Drives
TOSHIBA MK3256GSY
WDC WD7500BPKX-60HPJT0
Antivirus
Bitdefender Total Security 2019
Browser
Firefox Quantum 66.0.3 (64-bit)
Hi [MENTION=527653]Snick[/MENTION]


Any progress ?


admjgreer
 
Last edited by a moderator:

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavilion dv6-2043us
OS
Windows 7 Home Premium 64 bit
CPU
AMD Turion II Dual-Core Mobile M500
Motherboard
HP
Memory
8 GB
Graphics Card(s)
AMD M880G with ATI Mobility Radeon HD 4200
Hard Drives
TOSHIBA MK3256GSY
WDC WD7500BPKX-60HPJT0
Antivirus
Bitdefender Total Security 2019
Browser
Firefox Quantum 66.0.3 (64-bit)
Hi Snick


The problem has been resolved. My Bitdefender Total Security 2019 was about to expire so I uninstalled it and now sfc /scannow completed; Windows Resource Protection did not find any integrity violations.


I hope this is helpful to others.


Thank you for your help


admjgreer
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavilion dv6-2043us
OS
Windows 7 Home Premium 64 bit
CPU
AMD Turion II Dual-Core Mobile M500
Motherboard
HP
Memory
8 GB
Graphics Card(s)
AMD M880G with ATI Mobility Radeon HD 4200
Hard Drives
TOSHIBA MK3256GSY
WDC WD7500BPKX-60HPJT0
Antivirus
Bitdefender Total Security 2019
Browser
Firefox Quantum 66.0.3 (64-bit)
I've used sfc /scannow when I knew there were problems in the OS, and it never shows anything. Recently I downloaded some software that screwed up various system functions, but sfc found nothing wrong. I removed the software and used a System Restore, but this is always my experience with sfc. It's happened before.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP p6-2020t
OS
Win 7 Ult 64-bit
CPU
G620 2.6GHZ Pentium R
Memory
6 GB
Monitor(s) Displays
25" HPLV2311
Screen Resolution
1920 x 1200
Hard Drives
1 SATA, 1 exterior SATA
Case
HP
Cooling
PSU
Antivirus
Glasswire
Browser
Waterfox; Firefox; Chrome for work
Other Info
Firewall--Glasswire
Similar specs in Gateway DX4200
Verizon FIOS Wired network

1 other Win7 computer-- has SSD
Back
Top