Key Points
- Adding SFC /SCANNOW to the Windows 11 context menu gives administrators fast, one-click access to System File Checker for repairing corrupted system files.
- Create the context menu entry by adding registry keys under HKCR, enabling Windows 11 to launch SFC /SCANNOW with proper elevation and an optional log viewer.
- To remove the SFC context menu entry, delete the associated registry key; it will immediately restore the default Windows context menu behavior.
- For enhanced diagnostics, MSPs can use a batch script wrapper that runs SFC, pauses for review, and automatically stores scan logs in the CBS.log file.
- Common problems (SFC entry not appearing, failing to elevate, or scans not running) are typically resolved by restarting Explorer, confirming elevation parameters, or running DISM before SFC.
- Integrating SFC /SCANNOW into the context menu streamlines system repair operations, improves technician response time, and standardizes Windows maintenance practices across organizations.
The System File Checker (SFC) tool analyzes and repairs corrupted or missing system files. Many administrators prefer to make it more accessible by adding SFC to the context menu in Windows 11. This allows quick initiation of a system integrity scan without navigating through administrative terminals.
A guide for adding and removing SFC /scannow to the Windows 11 context menu
📌 Prerequisites:
- You need a Windows 11 device and have administrator privileges on that device.
- You need to have the ability to modify HKCR and HKLM registry paths.
- You should already have a familiarity with using an elevated Command Prompt window or PowerShell.
- It’s best to have an RMM or scripting platform for deployment.
- You need to have Windows Terminal or Command Prompt installed.
Method 1: Add SFC /SCANNOW to the classic context menu
📌Use Case: This is useful for MSPs who want the option available anywhere.
⚠️Warning: Editing the Registry Editor can lead to some unforeseen consequences for your system. Remember to back up your Registry before making any changes.
- Open the Start Menu and search for Notepad to open the program.
- Copy this into the document:
| Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\DesktopBackground\Shell\SFC]
[HKEY_CLASSES_ROOT\DesktopBackground\shell\SFC\shell\001menu] [HKEY_CLASSES_ROOT\DesktopBackground\shell\SFC\shell\001menu\command]
[HKEY_CLASSES_ROOT\DesktopBackground\shell\SFC\shell\002menu] [HKEY_CLASSES_ROOT\DesktopBackground\shell\SFC\shell\002menu\command] |
- Click File > Save as.
- Name the file Add_SFCContextMenu.reg.
- Click the dropdown menu next to Save as file type > All files.
- Save it in your folder of choice. You can now close Notepad.
- Go to the .reg file you saved and double-click it to run it.
- Restart the computer to apply the changes.
Method 2: Remove the SFC /SCANNOW context menu entry
⚠️Warning: Editing the Registry Editor can lead to some unforeseen consequences for your system. Remember to back up your Registry before making any changes.
- Open the Start Menu and search for Notepad to open the program.
- Copy this into the document:
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\DesktopBackground\Shell\SFC]
- Click File > Save as.
- Name the file Remove_SFCContextMenu.reg.
- Click the dropdown menu next to Save as file type > All files.
- Save it in your folder of choice. You can now close Notepad.
- Go to the .reg file you saved and double-click it to run it.
Method 3: Use a script wrapper for enhanced logging
📌Use Case: This is useful for MSPs who want auto-logging.
⚠️Warning: Editing the Registry Editor can lead to some unforeseen consequences for your system. Remember to back up your Registry before making any changes.
- Open the Start Menu and search for Notepad to open the program.
- Copy this into the document:
SFC /scannow
echo Scan complete. Log saved to %windir%\Logs\CBS\CBS.log
pause
- Click File > Save as.
- Name the file SFC_scan.bat.
- Click the dropdown menu next to Save as file type > All files.
- Save the file in a permanent folder where it won’t be accidentally deleted.
- You can now close Notepad.
- Open the Registry Editor.
- Navigate to this address: HKEY_CLASSES_ROOT\*\shell\SFC Scan\command
- In the right pane, double-click the (Default) value.
- Change the Value data to point to your .bat file location.
- Click OK. You can now close the Registry Editor.
Troubleshooting tips for adding SFC /scannow to the context menu
| Problem | Solution |
| SFC fails to run. | Make sure that the menu entry includes start cmd.exe with elevation. |
| The entry doesn’t appear in the context menu. | Use Show more options in Windows 11 to view classic menu entries. |
| The Registry changes don’t have any effect. | Restart explorer.exe or restart the computer to refresh shell settings. |
| SFC can’t repair your files. | Use DISM first, then run SFC again. |
| You’re getting access denied errors. | Confirm that the context menu entry uses an elevated command invocation. |
Repair your files by running SFC scannow using the context menu
Adding SFC /SCANNOW to the context menu gives technicians faster access to one of Windows’ most important repair tools. With a few registry keys, you can streamline integrity checks, automate logging, and reduce time spent opening an elevated Command Prompt window.
Quick-Start Guide
NinjaOne can help you add or remove an SFC /SCANNOW context menu option in Windows 11.
You can use a script to add the SFC /SCANNOW option to the context menu by creating a registry key. To remove the option, simply delete the associated registry key, which will restore the default Windows context menu behavior.
Related topics:
- How to Add or Remove Default New Context Menu Items in Windows 10
- How to Add “Take Ownership” to the Context Menu in Windows
- How to Add or Remove “Open in Windows Terminal” Expandable Context Menu in Windows 10
- How to Add or Remove ‘Install CAB’ Context Menu in Windows 10
- How to Add Copy Path to Context Menu in Windows 10
