Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Do you want to learn the SFC (System File Checker) command beyond its popular /scannow parameter? This guide is a deep dive into the SFC command with examples.

Overview

With your PC exposed to viruses and malware, sometimes, some Windows system files may be corrupt. Additionally, the files may even be replaced with incorrect, non-Microsoft versions.

The SFC scans your PC and detects if any of the protected Windows files are corrupt. Then, if it determines that a protected Windows file is corrupted or overwritten, it replaces the incorrect versions with the correct Microsoft versions.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Specifically, when you run SFC with the /scannow parameter, SFC scans all protected system files. Then, if it finds a corrupted system or one with the wrong version, it replaces corrupted files with a cached copy.

Popular on Amazon
Sale
STREBITO Electronics Precision Screwdriver Sets 142-Piece with 120 Bits | Magnetic Repair Tool Kit for iPhone, MacBook, Computer, Laptop, PC, Tablet, PS4, Xbox, Nintendo, Game Console
  • 【Wide Application】This precision screwdriver set has 120 bits, complete with every driver bit you’ll need to tackle any repair or DIY project. In addition, this repair kit has 22 practical accessories, such as magnetizer, magnetic mat, ESD tweezers, suction cup, spudger, cleaning brush, etc. Whether you're a professional or a amateur, this toolkit has what you need to repair all cell phone, computer, laptops, SSD, iPad, game consoles, tablets, glasses, HVAC, sewing machine, etc
  • 【Humanized Design】This electronic screwdriver set has been professionally designed to maximize your repair capabilities. The screwdriver features a particle grip and rubberized, ergonomic handle with swivel top, provides a comfort grip and smoothly spinning. Magnetic bit holder transmits magnetism through the screwdriver bit, helping you handle tiny screws. And flexible extension shaft is useful for removing screw in tight spots
  • 【Magnetic Design】This professional tool set has 2 magnetic tools, help to save your energy and time. The 5.7*3.3" magnetic project mat can keep all tiny screws and parts organized, prevent from losing and messing up, make your repair work more efficient. Magnetizer demagnetizer tool helps strengthen the magnetism of the screwdriver tips to grab screws, or weaken it to avoid damage to your sensitive electronics
  • 【Organize & Portable】All screwdriver bits are stored in rubber bit holder which marked with type and size for fast recognizing. And the repair tools are held in a tear-resistant and shock-proof oxford bag, offering a whole protection and organized storage, no more worry about losing anything. The tool bag with nylon strap is light and handy, easy to carry out, or placed in the home, office, car, drawer and other places
  • 【Quality First】The precision bits are made of 60HRC Chromium-vanadium steel which is resist abrasion, oxidation and corrosion, sturdy and durable, ensure long time use. This computer tool kit is covered by our lifetime warranty. If you have any issues with the quality or usage, please don't hesitate to contact us

Cached copies of Windows system files are located in a compressed folder, %WinDir%\System32\dllcache.

Before I proceed, it is important to mention that you need to run the command prompt as administrator to run the SFC command.

Finally, most times, before you run SFC with the /scannow parameter, it is recommended to run – DISM.exe /Online /Cleanup-Image /RestoreHealth – first. More on this is in the examples section of this guide.

Syntax and Parameters of the SFC Command

The syntax of the SFC (System File Checker) command is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
SFC [/SCANNOW] [/VERIFYONLY] [/SCANFILE=<file>] [/VERIFYFILE=<file>] [/OFFWINDIR=<offline windows directory> /OFFBOOTDIR=<offline boot directory> [/OFFLOGFILE=<log file path>]]

In the table below, I have explained each parameter and switch included in the command syntax above.

Parameter NameSFC Parameter Meaning/Notes
SCANNOWThis is the most popular parameter of the SFC (System File Checker) command. When you run SFC with the /Scannow parameter, it scans the integrity of all protected system files and repairs files with problems when possible.
VERIFYONLYThe VERIFYONLY parameter scans the integrity of all protected system files, but it does not repair the files.
VERIFYFILE=<file>This parameter verifies the integrity of the file with the full path to the file. When you use the VERIFYFILE=<file> parameter, it does not perform any repair operation.
SCANFILE=<file>Unlike the VERIFYFILE=<file>, the SCANFILE=<file> parameter scans the integrity of the specified file, then repairs the file if it identifies problems with the file.
OFFWINDIR=<offline windows directory> If you want to perform an offline repair, use the OFFWINDIR parameter to specify the location of the offline windows directory.
OFFBOOTDIR=<offline boot directory>You can also use this parameter to perform an offline Windows systems files repaid. Use the OFFBOOTDIR parameter to specify the location of the offline boot directory.
OFFLOGFILE=<log file path>Like the last two parameters, OFFLOGFILE is also for performing an offline repair. Use this parameter to enable logging optionally by specifying a log file path.
/?Run the SFC /? command to display SFC help at the command prompt.

Some SFC Command Examples

Now that you know a bit about the SFC (System File Checker) command, it is time to dive into some examples. In this section, I’ll show you other ways to run the System File Checker command beyond using its SCANNOW parameter.

Example 1: Run SFC /SCANNOW System File Checker Command

Having read this guide to this point, I suspect that you know how to run the SFC /SCANNOW. However, for any of my readers that require me to show how to do it expressly, here are the steps.

Also popular on Amazon
JOREST 59Pcs Small Precision Screwdriver Set with Torx T5 T6, Mini Tool Kit | Magnetic Electronic Repair Tool Kit for Macbook, Computer, Laptop, Phone, PS5, Xbox, Switch, Eyeglasses, Watch, Ring Doorbell
  • 【59 in 1 Precision Screwdriver Set】Small screwdriver set contains 44 screwdriver bits, Phillips PH000,PH00,PH0,PH1,PH2; Flathead -1.0, -1.5 -2.0,-3.0; Torx T1 T2 T3 T4 T5, Torx security TR6 TR7 TR8 TR9 TR10 TR15 TR20; Triwing Y0.6, Y1.5. Y2.3, Y3.0; Pentalobe P2(0.8) P5(1.2); Triangle 2.3; U-type U2.6; H-type: H0.9, H1.3, H1.5, H2.0, H2.5, H3.0; MID-type: MID; Sleeve: M2.5, M3.0, M3.5, M4.0, M4.5, Cross 2.0, G3.8, G4.5
  • 【Unique Handle Design】Ergonomic design handle, more energy-saving operation, batch head built-in strong magnet, easy to adsorb the batch head. The screwdriver bit is made of high quality CRV steel, which is wear-resistant and hard.
  • 【Multi-Functional Accessories】Mini Tool kit contains 15 accessories for a variety of repair needs, including a magnetic plus or minus area to increase or decrease the magnetism of the bit, a long pry bar, a scimitar shaped pry bar, four triangular pry blades, three double-ended pry bars, tweezers, a black cleaning brush, a SIM card thimble, and a suction cup. Note: The package is made of PP material without carton and user manual.
  • 【Practical Storage Box】Compartments are categorized for placement, each CRV precision bit is marked with a model number for easy identification, neatly dispensed for easy storage and searching. The box is sturdy and durable with strong clasps that protect each accessory well. The bits are mini (long 28mm, diameter 3.98mm) for precision work, not suitable for large screws.
  • 【Wide Scope of Application】Suitable for iPhone/Samsung/Huawei and other cell phones; Mini/Air/Pro and Huawei/Honor and other laptops; Macbook/Air/Pro; Kindle/Kindle Fire; Ring Video Doorbell/ Video Doorbell 2/Pro/Elite; PS4/PS5/XOBX game console controllers and consoles, and PC laptops , watches, glasses, jewelry, toys, flight models, drones, cameras, RC cars, and some small appliances like coffee makers.
  1. Run command prompt as administrator.
  2. Then, when the command prompt opens with administrator privileges, run the SFC /SCANNOW command.

The SFC command with its /SCANNOW parameter takes a while to run. When it completes, it may return one of the following results:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Windows Resource Protection did not find any integrity violations. This result means that your PC does not have any missing or corrupted system files.
  2. Windows Resource Protection could not perform the requested operation. My 4th example below shows the steps to fix this problem.
  3. Windows Resource Protection found corrupt files and successfully repaired them. This message will usually be followed by “Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log.”
  4. Windows Resource Protection found corrupt files but was unable to fix some of them. This is also followed by “Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log.”

    I will show how to fix this problem in my fifth example below.

Example 2: Use SFC and DISM Commands to Repair Corrupt Windows Files

I hinted earlier in this guide that it is common to run SFC and DISM commands to repair most system file corruption issues in Windows.

However, most users wonder which of the commands you run first. In addition to that, people wonder about which parameters of the SFC and DISM command to use.

This Microsoft guide recommends running DISM first before running the SFC command. Specifically, you need to run DISM with its “/Online /Cleanup-Image /RestoreHealth” parameters.

Then, run the SFC command with its SCANNOW parameter.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Example 3: Run SFC Scan as an Administrator

I have answered this question in my previous examples, but since people are asking this question, I wanted to address it directly.

Also popular on Amazon
JOREST Small Precision Screwdriver Set with Torx Triwing Phillips, Mini Repair Tool Kit for Macbook, Computer, Laptop, PC, iPhone, PS5, Xbox, Switch, Glasses, Watch, Ring Doorbell, Electronics
  • 【Precision screwdriver set】-- 40Pcs screwdriver set has 30 CRV screwdriver bits which are phillips PH000(+1.2) PH000(+1.5) PH00(+2.0) PH0(+3.0) PH1(+4.0), flathead -0.8 -1.2 -1.5 -2.5 -3.0, torx T1 T2 T3 T4 T5, torx security TR6 TR7 TR8 TR9 TR10 TR15 TR20, triwing Y000(Y0.6) Y00(Y1.5) Y0(Y2.5) Y1(Y3.0), pentalobe P2(0.8) P5(1.2) P6(1.5), MID 2.5, with a screwdriver handle, a double-ended spudger, a long spudger, 3 triangle spudgers, Tweezers, a cleaning brush and a suction cup with SIM card thimble.
  • 【Slip-resistant rotatable handle】-- All our screwdriver bits are made of high quality CR-V chrome vanadium steel. CR-V screwdriver bits do not rust easily and are not prone to be broken. The screwdriver handle is made of TPR and PP materials, with a special non-slip design, offering a sense of comfortable. The top of the handle is rotatable design which makes it more convenient to remove the screws; the handle head and the screw head has magnetic adsorption which can quickly replace the screws.
  • 【Portable gadgets】-- The triangular spudger is more suitable for opening the screen of the mobile phone.The double-ended spudger is more suitable for opening the back cover of game devices. The long spudger can pry the internal parts of the device.The suction cup can open the screen, which is more convenient to repair the mobile phone.The SIM card thimble can be used to replace the SIM card of the mobile phone. The cleaning brush can clean the dust of the device.Tweezers can grip small parts.
  • 【Wide scope of application】-- +1.5/2.0 P2 Y0.6 MID2.5 are used for iPhone7/8/X/XR/11/12/13. +1.2/1.5/2.0/3.0 T2/3/4/5 P2 are used for Samsung/Huawei/Xiaomi and other phones. +1.5/2.0/3.0 T3/4/5/6/9 are used for iPad/Mini/Air/Pro. +1.2/1.5/2.0/3.0/4.0 T2/3/4/5 -2.5 are used for Huawei/Honor and other tablets. P2/5/6 +1.5/2.0/3.0/4.0 T3/4/5/6/7/8/9 Y2.5/3.0 are used for Macbook/Air/Pro. +1.5/2.0/3.0 T5 are for Kindle/Kindle Fire. T6/15 are used Ring Video Doorbell/ Video Doorbell 2/Pro/Elite.
  • 【Wide scope of application】-- T8 +1.5/2.0/3.0 are used for PS3/PS4/PS5 controllers and consoles. T6/8/10 are used for Xbox 360/Xbox One/Xbox Series controllers and consoles. Y1.5/2.5/3.0 +1.5/2.0 are used for Switch/NS-Lite/Joy-Con/Wii/Game Boy Advance. T3/8 are used for Fitbit wristband/folding knife. +1.2/1.5/2.0/3.0/4.0 T3/4/5/6/7/8/9 Y2.5/3.0 -2.5 are used for Microsoft/Acer/Dell and other laptops. +1.2/1.5/2.0/3.0/4.0 -0.8/1.2/1.5/2.5/3.0 are used for Desktop Computer/Watch/Glasses/Toy.

The convention method to run SFC scab as administrator is first to run command prompt as administrator. Then, run the SFC command in the command prompt you opened with administrator privileges.

However, you can use PowerShell to run SFC as an administrator using the Start-Process command. Here is a command that runs SFC as administrator from PowerShell.

Start-Process -FilePath "SFC.exe" -ArgumentList @("/SCANNOW") -Verb RunAs

When you run the command, Windows will display the User Account Control prompt requesting you to allow the cmd app to make changes to your PC. Click Yes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When you click Yes, PowerShell will open an instance of CMD and run the SFC command. After running the command, the SFC window will close automatically.

Example 4: Repair a Windows System File with SFC

Apart from finding and repairing multiple protected Windows system files, SFC can only repair one system file.

To repair one protected system file with the SFC command, use its SCANFILE=<file> parameter. For example, to scan and repair kernel32.dll, run the command below.

Also popular on Amazon
Sale
JOREST 152 in 1 Small Precision Screwdriver Set, Christmas Tool Gifts for Men, Mini Repair Tool Kit for Electronics, Macbook, Laptop, PC, RC, PS5, iPhone, Jewelers, Xbox, Glasses
  • 【Precision Screwdriver Set】 Small screwdriver set has 140 bits in multiple models, including Torx , Phillips, Pentalobe, Star, Triwing, Triangle Etc, covering most screwdriver models on the market. The 4 long bits can help you remove deeper screws. Some commonly used screwdriver bits are also equipped with 2-3 bits of the same model as backup.
  • 【Unique Handle Design and CRV Material】 The screwdriver handle is made of TPR and PP materials, the cap is rotatable, and it adopts an extended tool bar design. The length of the tool bar can be adjusted, making it easy to reach deep for disassembly. Screwdriver bits are made of high-quality CRV steel, which is wear-resistant and has high hardness.
  • 【Multifunctional Accessories】 Mini screwdriver set contains 12 accessories to meet various repair needs. The matching flexible shaft facilitates multi-angle disassembly and repair of electronic products. The magnetizer demagnetizer tool can increase or decrease the magnetism of the bit. The magnetic mat is used to absorb small screws to avoid loss. The 1/4‘’ to 4mm silver adapter provided is used for drill to adapt large and thick bits, which is not suitable for precision and small manual screwdriver bits. This toolkit also comes with a double-ended pry bar, triangular pick and suction cup for easy repairing.
  • 【Practical Storage Box】 Each screwdriver bit is marked with a model number for easy identification and is placed in a magnetic storage slot. The accessory slot can store various accessories safely and securely. The box is made of ABS plastic and PP material, which is solid and durable, and the buckle is firm, which can protect each accessory well.
  • 【Wide Range of Application】Applicable to iPhone/Samsung/Huawei and other cell phones; Mini/Air/Pro and Huawei/Honor and other tablet PCs; Macbook/Air/Pro; Kindle/Kindle Fire; Ring Visual Doorbell/Visual Doorbell 2/Pro/Elite; PS4/PS5/XOBX game consoles, as well as PC laptop computers, jewelry, toys, aeromodels, drones, remote-control cars, and some small household appliances such as coffee machines.
sfc /SCANFILE=c:\windows\system32\kernel32.dll

Example 5: Fix “Windows Resource Protection could not perform the requested operation” SFC Error

If your SFC /SCANNOW command returns the “Windows Resource Protection could not perform the requested operation” error message, follow the steps below to fix the problem:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Boot your Windows 10 or Windows 11 PC to safe mode.
  2. Then, check that the folder – %WinDir%\WinSxS\Temp – has the PendingDeletes and PendingRenames folders.
  3. Start your PC in normal mode and run SFC /SCANNOW again.

Example 6: Fix “Windows Resource Protection found corrupt files but was unable to fix some of them” SFC Error

To fix this problem, you need to repair the corrupted files manually. Follow the steps below to complete this task:

  1. View details of the System File Checker process to find the corrupted file.
  2. Then manually replace the corrupted file with a known good copy of the file.

The two links above reference a Microsoft article.

Example 7: Fix SFC Command if it is Stuck

Sometimes when you run SFC /SCANNOW, it may get stuck. Follow the steps below to fix this problem:

  1. Close the stuck SFC command by pressing the ctrl and x keys simultaneously.
  2. Then, run the following DISM commands one after the other.
Dism.exe /online /cleanup-image /scanhealth
Dism.exe /online /cleanup-image /restorehealth

After running the two DISM commands, run SFC /SCANNOW again. If it still gets stuck, try the following steps:

  1. Run the CHKDSK command on drive C:\, then specify the /F switch.
CHKDSK C:/f

When you run the command, Windows will ask you to restart the computer to run the command. Enter Y and press the enter key to restart your PC.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Then, when your PC has finished running the CHKDSK command and starts your computer, log in to your PC and run the SFC /SCANNOW command again.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

1. What is the System File Checker command?

The System File Checker (SFC.exe) command scans the protected Windows Operating System files and repairs them. SFC behaves this way if you run it with its SCANNOW parameter.

However, you can get the SFC command to behave differently by using other parameters.

Also popular on Amazon
STREBITO Precision Screwdriver Set 64-piece with Torx, Triwing, Gamebit | Magnetic Electronic Repair Tool Kit for Computer, PC, Laptop, Macbook, Tablet, Phone, PS5, XBOX, Switch, Glass, Ring Doorbell
  • 64-in-1 Precision Screwdriver Set: This small screwdriver set includes 48 bits (Phillips, Flathead, Torx, Torx security, Triwing, Pentalobe, Hex, Triangle, U-type, Square, SIM, MID, OVAL, Gamebit, Nut driver). It's a complete electronics repair kit that has been professionally designed to repair computers, PC, laptops, Macbooks, tablet, phones, PS4 PS5, XBOX, Switch, eyeglasses, drone, watches, Ring doorbells and more
  • Ergonomic & Magnetic Design: The super smooth swivel cap on the top of the handle makes it easier to rotate screws with less effort. This mini screwdriver features an ergonomic non-slip design and rubberized handle that provides a comfortable grip and precise control. The built-in strong magnet ensures magnetic bit holder transmits magnetism through the screwdriver tip to help you with tiny screws
  • Practical Accessories: Our electronics tool kit comes with 8 types of 15 essential accessories. Magnetizer can enhance the magnetism of the screwdriver tip, pointed tweezers make it easy to handle screws and tiny components, spudger and hook tool is effective for connecting/disconnecting components, scraping off adhesives, suction cup, pry tools, opening picks and brush to help open and clean your device
  • Organize & Portable Storage: All screwdriver bits are stored in rubber bit holder which marked with type and size for fast recognizing. The rubber bit holder can be fixed on the shelf of the sturdy plastic case, also can be removed for easy access, making it more convenient for you to perform repairs. The case provides secure protection and organized storage, while being lightweight and portable for easy transportation
  • Premium Quality & Warranty: STREBITO manufactures premium quality, pro-grade screwdriver set. The precision bits are CNC machined to be precise, made of 60HRC Chromium-vanadium steel which is resist abrasion, oxidation and corrosion. This micro screwdriver set is covered by our lifetime warranty. If you have any issues with the quality or usage, simply contact customer service for troubleshooting help
2. How do I run DISM or SFC scan?

Before you can run DISM or SFC command, you must open a command prompt as administrator. Then, run the two commands as shown below.

DISM.exe /Online /Cleanup-Image /Restorehealth
SFC.exe /SCANNOW

Wait for the DISM command to complete before running the SFC command.

3. Should I run DISM or SFC first?

I recommend you run DISM, then the SFC command.

4. Does SFC Scannow remove viruses?

No, the SFC Scannow command does not remove viruses. However, if a virus replaces protected Windows system files, SFC may be able to replace the corrupted files with the correct versions.

5. Which is better, SFC Scannow or CHKDSK?

SFC is not better than CHKDSK, and vice versa. The two commands perform different functions.

Essentially, you run SFC if you suspect that your Windows OS has some corrupt protected files. SFC scans and replaces corrupted protected systems files if you run it with the SCANNOW parameter.

On the other hand, the CHKDSK command checks your PC’s disk for errors and fixes disk errors.

However, if you run the SFC command and it gets stuck, it may be helpful to run the CHKDSK command on the system drive and specify the /F switch.

When the CHKDSK finishes, you can try running the SFC command.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Conclusion

The SFC (System File Checker) command is a common Windows OS command. However, beyond its SCANNOW parameter, most users do not know about the other parameters of this powerful command.

Apart from its SCANNOW parameter, the SFC command has 6 other parameters. In this guide, I have discussed these parameters in detail with examples.

I hope you found the guide helpful. If you found the guide helpful, click on “Yes” beside the “Was this page helpful” question below.

You may also express your thoughts and opinions by using the “Leave a Comment” form at the bottom of this page.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Finally, to broaden your Windows command prompt commands knowledge, visit our Windows Command Prompt Guides page.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.