SFC /SCANNOW Command - Run in Windows 8

How to Run "SFC /SCANNOW" Command at Boot or in Windows 8 and 8.1


information   Information
The SFC command scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions.

This tutorial will show you how to run the sfc /scannow command at boot or in Windows 8 to attempt to repair corrupted or modified system files.

Tip   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/tap on Start, and set to Manual.

Services - Start, Stop, and Disable in Windows 8

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


If SFC is unable to repair corrupted system files because the store (source) is corrupted, then you could run the Dism /Online /Cleanup-Image /RestoreHealth command to fix Windows component store corruption, then afterwards try running the SFC scan again.

warning   Warning
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.


CONTENTS:







OPTION ONE

To Run SFC /SCANNOW Command at Boot



1. Open a command prompt at boot.

2. In the command prompt, type diskpart and press Enter, then type list volume and press Enter. (see screenshot below)

SFC-boot-1.jpg

3. Make note of the drive letters for your boot drive (ex: 350MB "System Reserved" partition) and Windows 8 drive, then type Exit and press Enter. (see screenshot above)
NOTE: If you do not have a "System Reserved" partition, and are not multi-booting with another operating system, then the boot drive and Windows 8 drive may be the same drive letter.

4. In the command prompt, type the command below and press Enter. (see screenshot below)
NOTE: You will see a blinking cursor at the prompt until finished. This will take a while to finish running though.


sfc /scannow /offbootdir=C:\ /offwindir=D:\windows


Note   Note
You will need to substitute the drive letter of the partition/volume where your system boot files are stored in the offbootdir=C: part of the command above instead.[

You will need to substitute the drive letter of your Windows 8 partition/volume in the offwindir=D: part of the command above instead.




SFC-boot-2.jpg

5. When the scan is complete, hopefully you will see an all is ok message like below.

finished.jpg


6. Close the command prompt, and restart the computer to start Windows 8.

Note   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 times restarting the PC after each time to completely fix everything that it's able to.

If not, then run the Dism /Online /Cleanup-Image /RestoreHealth command to repair any component store corruption, restart the PC afterwards, and try the sfc /scannow command again.

If still not, then you could do a refresh of Windows 8, or run a System Restore using a restore point dated before the bad system file occured to fix it. You may need to repeat doing a System Restore until you find a older restore point that may work.

When running SFC offline (at boot), SFC logging in the CBS.log file is not supported to be able to create a sfcdetails.txt file in OPTION THREE below.











OPTION TWO

To Run SFC /SCANNOW Command in Windows 8



1. Open an elevated command prompt or elevated PowerShell.

2. In the elevated command prompt or PowerShell, type sfc /scannow and press Enter. (see screenshot below)
NOTE: This may take a while to finish running.

SFC-1.jpg

3. When the scan is complete, hopefully you will see an all is ok message like the bottom screenshot below.
NOTE: Luckily SFC was able to repair my corrupted system files automatically.

SFC-2.jpg

CMD_No_Errors.jpg

Note   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 times restarting the PC after each time to completely fix everything that it's able to.

If not, then run the Dism /Online /Cleanup-Image /RestoreHealth command to repair any component store corruption, 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 could do a refresh of Windows 8, or 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 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 THREE

How to View Only the "SFC" Scan Results from the CBS.LOG



Note   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.

When running SFC offline (at boot) in OPTION ONE, SFC logging in the CBS.log file is not supported to be able to create a sfcdetails.txt file.




1. Open an elevated command prompt or elevated PowerShell.


2. In the elevated command prompt or PowerShell, copy and paste the command below and press Enter.
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"




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. When finished, you can safely delete the sfcdetails.txt file afterwards if you like.




Tip   Tip
If you need to replace a corrupted system file that SFC cannot fix, then this will show you how to:

If you have to many files that are corrupted, then run the Dism /Online /Cleanup-Image /RestoreHealth command to repair any component store corruption, restart the PC afterwards, and try the sfc /scannow command again.

If you only have a few, then you could manually extract a new copy directly from your Windows 8 installation DVD or USB thumb drive, or ISO file if in a virtual machine.

Extract Files from Windows 7 Installation DVD








That's it,
Shawn


 

Attachments

  • File_System.png
    File_System.png
    13.3 KB · Views: 586
Last edited by a moderator:
oh well thanks for your help guys

at least the ones on c:\windows\fonts\ are good, checked the SHA-1 was correct with the ones i extracted the files from the install.wim with 7-zip

problem is this 0 byte ones, no point replacing them since they are like compressed, or maybe i'll try the ones from another pc.
4LNnlJ.png


setup.exe had http://i.hizliresim.com/P5jVk7.png
Here's the fonts from my box, if you want them.....View attachment 59862


I had trouble getting that attached. Hope it went through!
 

My Computer

System One

  • OS
    win7 x64, win 10 tp, soon to be win 8.1
oh, those are the regular ones, i'm looking for the ones from winsxs (my folder is named C:\Windows\WinSxS\amd64_microsoft-windows-f..pe-palatinolinotype_31bf3856ad364e35_6.3.9600.16384_none_40623d4fcf72ad3d ), they weight a little less, they are probably a compressed version

dn9djQ.png
 

My Computer

System One

  • OS
    windows 7 x86,7 x64, 8 x64, xp
    CPU
    2500k
    Motherboard
    asus p8p67 pro
    Memory
    16 gb
    Graphics Card(s)
    ati hd4850
lo and behold, manually putting the files there worked (had to edit permissions of the folders to be able to)

JpvOaq.png


thanks for your help guys
 

My Computer

System One

  • OS
    windows 7 x86,7 x64, 8 x64, xp
    CPU
    2500k
    Motherboard
    asus p8p67 pro
    Memory
    16 gb
    Graphics Card(s)
    ati hd4850
I think I need help

Hello Shawn and Thank you for these great tutorials. This is my first time asking for help, although I use your tuts all the time. I don't understand why I can't get the Dism /Online /Cleanup-Image /RestoreHealth command to work for me (I've used it before o.k. I'm trying to get things straight before Windows 10). I also can't run the sfc /scannow at boot. I'm not sure which volumes to use? I've attached the sfcdetails.txt and a screenshot of my diskpart volumes. Do you think you could help me? Thank you in advance.

View attachment sfcdetails.txt

IMG_5065.JPG
 
Last edited by a moderator:

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Dell 2710
    Keyboard
    wireless came w/PC
    Mouse
    wireless came w/PC
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium & Windows Defender

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    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 (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    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,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    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
Thank you so much for your help. Appreciate it. I'll try doing what you suggest. You are very smart.
 

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Dell 2710
    Keyboard
    wireless came w/PC
    Mouse
    wireless came w/PC
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium & Windows Defender
Well, I uninstalled and reinstalled still getting the same "corrupt files" message when running sfc /scannow. Did some looking around and found out that KB3068708 is an optional update, that basically tracks everything you do on your pc. Microsoft says in this article that this update will indeed cause sfc to throw a "corrupt files" message, when there is actually no file corruption at all....a false positive? https://support.microsoft.com/en-us/kb/3068708 I uninstalled and ran sfc again, still got corrupt file issues....however, you will see in the link provided KB3022345 is pretty much the same thing as KB3068708. The later was created to replace the former. I think I might try uninstalling the KB3022345 and see if it removes the error....or maybe I'll just not worry about it. What do you think?


Well, I guess the above info is correct. When I uninstalled both updates (which are both optional updates): I got a clean bill of health in /scannow:
sfc.jpg
 
Last edited by a moderator:

My Computer

System One

  • OS
    Windows 8.1
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Dell 2710
    Keyboard
    wireless came w/PC
    Mouse
    wireless came w/PC
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium & Windows Defender
:thumbsup:
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    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 (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    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,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    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

My Computer

System One

  • OS
    Windows 10 Pro 64bit
    Computer type
    Laptop
    System Manufacturer/Model
    Toshiba Satellite P50t
    CPU
    Intel i7-4700MQ @ 2.40Ghz
    Memory
    8.00GB
    Graphics Card(s)
    GeForce GT745M
    Sound Card
    Realtek Integrated chip
    Monitor(s) Displays
    Generic LCD
    Screen Resolution
    1920x1080
    Hard Drives
    Toshiba MQ01ABD100H (it's a Hybrid) One TB with 8GB integrated SSD
    PSU
    none
    Case
    n/a
    Cooling
    n/a
    Keyboard
    integrated_Backlit
    Mouse
    m/a
    Internet Speed
    Full Speed Fibre
    Browser
    IE/Firefox/Chrome
    Antivirus
    Windows Defender
It does not work for me. Says windows resource protection could not start the repair service. I have tried everything to fix it, including the enable trustedinstaller and all that. I can not get it to run.
 

My Computer

System One

  • OS
    Windows 8.1
Hello Austinomical, and welcome to Eight Forums.

See if setting the service to "Automatic" and restarting the computer may get it to run.

Are you getting an error when trying to start the service?
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    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 (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    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,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    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
So I got it to work, what you said helped. But now after it has finished scanning it says: Windows resource protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log windir\Logs\CBS\CBS.log.
 

My Computer

System One

  • OS
    Windows 8.1
Good news so far. You can now go through the items listed in the note box at the bottom of OPTION TWO to see if it may help SFC repair the files afterwards.
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    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 (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    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,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    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

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    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 (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    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,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    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

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    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 (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    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,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    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
Since it's a false report as being corrupted with a mismatch, it would be safe to leave it as is if you are not having any issues from it. Otherwise, you could leave the update uninstalled, and hide it to prevent it from being available again.
 

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Custom self built
    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 (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    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,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    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
Back
Top