System Add SFC /SCANNOW Context Menu in Windows 11


  • Staff
SFC_banner.png

System File Checker (SFC) is a tool built into Windows that will check for system file corruption.

The SFC /SCANNOW command scans and verifies the integrity of all protected system files and replaces missing or corrupted versions with correct versions when possible. If this command discovers that a protected file has been overwritten, it retrieves the correct version of the file from the Windows image component store, and then replaces the missing or corrupted file.

This tutorial will show you how to add a SFC SCANNOW desktop context menu for all users in Windows 10 and Windows 11.


You must be signed in as an administrator to add and remove the "SFC /SCANNOW" context menu.

You must be signed in as an administrator to run the SFC /SCANNOW command in the context menu.

The View SFC scan log context menu item will create a sfcdetails.txt file on your desktop containing the SFC scan details.



EXAMPLE: SFC /SCANNOW context menu and results

You will need to click/tap on Show more options first by default, then click/tap on SFC /SCANNOW.


Show_more_options.png
SFC_context_menu.png


SFC_command.png
SFC_log_details.png



Here's How:

1 Do step 2 (add) or step 3 (remove) below for what you would like to do.

2 Add SFC /SCANNOW Context Menu

A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Add_SFC_SCANNOW_context_menu.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\SFC]
"Icon"="WmiPrvSE.exe"
"MUIVerb"="SFC /SCANNOW"
"Position"="Bottom"
"SubCommands"=""


[HKEY_CLASSES_ROOT\DesktopBackground\shell\SFC\shell\001menu]
"HasLUAShield"=""
"MUIVerb"="Run SFC /SCANNOW"

[HKEY_CLASSES_ROOT\DesktopBackground\shell\SFC\shell\001menu\command]
@="PowerShell -windowstyle hidden -command \"Start-Process cmd -ArgumentList '/s,/k, sfc /scannow' -Verb runAs\""


[HKEY_CLASSES_ROOT\DesktopBackground\shell\SFC\shell\002menu]
"MUIVerb"="View SFC scan log"
"Icon"="imageres.dll,-102"

[HKEY_CLASSES_ROOT\DesktopBackground\shell\SFC\shell\002menu\command]
@="PowerShell (sls [SR] $env:windir\\Logs\\CBS\\CBS.log -s).Line >\"$env:userprofile\\Desktop\\sfcdetails.txt\""

3 Remove SFC /SCANNOW Context Menu

This is the default setting.


A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

Remove_SFC_SCANNOW_context_menu.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\DesktopBackground\Shell\SFC]

4 Save the .reg file to your desktop.

5 Double click/tap on the downloaded .reg file to merge it.

6 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

7 You can now delete the downloaded .reg file if you like.


That's it,
Shawn Brink


 

Attachments

  • sfc.png
    sfc.png
    10.7 KB · Views: 12
  • Add_SFC_SCANNOW_context_menu.reg
    1.9 KB · Views: 16
  • Remove_SFC_SCANNOW_context_menu.reg
    496 bytes · Views: 21
Last edited:

Scott

Well-known member
Member
VIP
Local time
12:15 AM
Posts
425
Location
Maui, HI
Visit site
OS
Win 11 Pro 22H2 22621.1194
Nice...works with the classic context menu as well.

1669573722373.png


Possible to add:

Dism /online /Cleanup-Image /StartComponentCleanup ?
 
Last edited:

My Computers

System One System Two

  • OS
    Win 11 Pro 22H2 22621.1194
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self Built
    CPU
    Intel® Core™ i5-11600KF
    Motherboard
    ASUS TUF GAMING Z590-PLUS WIFI
    Memory
    CORSAIR Vengeance LPX 64GB (4x16GB)
    Graphics Card(s)
    EVGA GeForce RTX 3050 XC Black Gaming
    Sound Card
    Creative Labs PCIe Sound Blaster X-Fi Titanium (dan_k drivers)
    Monitor(s) Displays
    ASUS TUF Gaming 27" WQHD
    Screen Resolution
    2560 x 1440
    Hard Drives
    SAMSUNG 980 Pro SSD 1TB PCle 4.0 NVMe (boot)
    SAMSUNG 970 EVO 1TB PCle 3.0 NVMe (x2)
    SAMSUNG 870 EVO 2TB SATA III (x2)
    SAMSUNG 870 EVO 250GB SATA III
    PSU
    CORSAIR HX750
    Case
    Antec Dark Phantom DP502 FLUX
    Cooling
    Corsair Hydro Series H60 AIO
    Keyboard
    Logitech MK 320
    Mouse
    Razer Basilisk V3
    Internet Speed
    200Mbs
    Browser
    Firefox
    Antivirus
    Winows Security
    Other Info
    UEFI, Secure Boot, TPM 2.0
    MR 8 HE
  • Operating System
    Win 11 Pro 22H2 22621.963
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel Core i7-8700
    Motherboard
    Asus Prime Z370 P-II
    Memory
    32 GB DDR4
    Graphics card(s)
    EVGA GeForce GTX 760
    Sound Card
    Realtek
    Monitor(s) Displays
    Samsung SMT27A300
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 870 EVO 500GB SSD
    Seagate Barracuda 7200rpm 1TB HDD (X2)
    PSU
    Corsair CX550M
    Case
    Old Antec, unknown model
    Cooling
    Hyper 212 EVO
    Browser
    Firefox
    Antivirus
    Windows Security

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
4:15 AM
Posts
7,424
Visit site
OS
Windows 11 Pro for Workstations

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    1TB Samsung 980 PRO M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium

Scott

Well-known member
Member
VIP
Local time
12:15 AM
Posts
425
Location
Maui, HI
Visit site
OS
Win 11 Pro 22H2 22621.1194
Sweet! I missed that one somehow. Thanks Brink!
 

My Computers

System One System Two

  • OS
    Win 11 Pro 22H2 22621.1194
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self Built
    CPU
    Intel® Core™ i5-11600KF
    Motherboard
    ASUS TUF GAMING Z590-PLUS WIFI
    Memory
    CORSAIR Vengeance LPX 64GB (4x16GB)
    Graphics Card(s)
    EVGA GeForce RTX 3050 XC Black Gaming
    Sound Card
    Creative Labs PCIe Sound Blaster X-Fi Titanium (dan_k drivers)
    Monitor(s) Displays
    ASUS TUF Gaming 27" WQHD
    Screen Resolution
    2560 x 1440
    Hard Drives
    SAMSUNG 980 Pro SSD 1TB PCle 4.0 NVMe (boot)
    SAMSUNG 970 EVO 1TB PCle 3.0 NVMe (x2)
    SAMSUNG 870 EVO 2TB SATA III (x2)
    SAMSUNG 870 EVO 250GB SATA III
    PSU
    CORSAIR HX750
    Case
    Antec Dark Phantom DP502 FLUX
    Cooling
    Corsair Hydro Series H60 AIO
    Keyboard
    Logitech MK 320
    Mouse
    Razer Basilisk V3
    Internet Speed
    200Mbs
    Browser
    Firefox
    Antivirus
    Winows Security
    Other Info
    UEFI, Secure Boot, TPM 2.0
    MR 8 HE
  • Operating System
    Win 11 Pro 22H2 22621.963
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel Core i7-8700
    Motherboard
    Asus Prime Z370 P-II
    Memory
    32 GB DDR4
    Graphics card(s)
    EVGA GeForce GTX 760
    Sound Card
    Realtek
    Monitor(s) Displays
    Samsung SMT27A300
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 870 EVO 500GB SSD
    Seagate Barracuda 7200rpm 1TB HDD (X2)
    PSU
    Corsair CX550M
    Case
    Old Antec, unknown model
    Cooling
    Hyper 212 EVO
    Browser
    Firefox
    Antivirus
    Windows Security

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
4:15 AM
Posts
7,424
Visit site
OS
Windows 11 Pro for Workstations

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    1TB Samsung 980 PRO M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium

Scott

Well-known member
Member
VIP
Local time
12:15 AM
Posts
425
Location
Maui, HI
Visit site
OS
Win 11 Pro 22H2 22621.1194

My Computers

System One System Two

  • OS
    Win 11 Pro 22H2 22621.1194
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self Built
    CPU
    Intel® Core™ i5-11600KF
    Motherboard
    ASUS TUF GAMING Z590-PLUS WIFI
    Memory
    CORSAIR Vengeance LPX 64GB (4x16GB)
    Graphics Card(s)
    EVGA GeForce RTX 3050 XC Black Gaming
    Sound Card
    Creative Labs PCIe Sound Blaster X-Fi Titanium (dan_k drivers)
    Monitor(s) Displays
    ASUS TUF Gaming 27" WQHD
    Screen Resolution
    2560 x 1440
    Hard Drives
    SAMSUNG 980 Pro SSD 1TB PCle 4.0 NVMe (boot)
    SAMSUNG 970 EVO 1TB PCle 3.0 NVMe (x2)
    SAMSUNG 870 EVO 2TB SATA III (x2)
    SAMSUNG 870 EVO 250GB SATA III
    PSU
    CORSAIR HX750
    Case
    Antec Dark Phantom DP502 FLUX
    Cooling
    Corsair Hydro Series H60 AIO
    Keyboard
    Logitech MK 320
    Mouse
    Razer Basilisk V3
    Internet Speed
    200Mbs
    Browser
    Firefox
    Antivirus
    Winows Security
    Other Info
    UEFI, Secure Boot, TPM 2.0
    MR 8 HE
  • Operating System
    Win 11 Pro 22H2 22621.963
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel Core i7-8700
    Motherboard
    Asus Prime Z370 P-II
    Memory
    32 GB DDR4
    Graphics card(s)
    EVGA GeForce GTX 760
    Sound Card
    Realtek
    Monitor(s) Displays
    Samsung SMT27A300
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung 870 EVO 500GB SSD
    Seagate Barracuda 7200rpm 1TB HDD (X2)
    PSU
    Corsair CX550M
    Case
    Old Antec, unknown model
    Cooling
    Hyper 212 EVO
    Browser
    Firefox
    Antivirus
    Windows Security

hepburn

Member
Local time
1:15 PM
Posts
5
Visit site
OS
Windows 11 Pro 22H2 Beta Build 22623.1245
Does it also work in Windows 10?
 

My Computer

System One

  • OS
    Windows 11 Pro 22H2 Beta Build 22623.1245
    Computer type
    PC/Desktop
    Memory
    8GB DDR3
    Graphics Card(s)
    Sapphire Amd Radeon RX 550 4GB GDDR5
    Browser
    Opera/Brave/Microsoft Edge Stable/Microsoft Edge Dev
    Antivirus
    Norton 360

hepburn

Member
Local time
1:15 PM
Posts
5
Visit site
OS
Windows 11 Pro 22H2 Beta Build 22623.1245

My Computer

System One

  • OS
    Windows 11 Pro 22H2 Beta Build 22623.1245
    Computer type
    PC/Desktop
    Memory
    8GB DDR3
    Graphics Card(s)
    Sapphire Amd Radeon RX 550 4GB GDDR5
    Browser
    Opera/Brave/Microsoft Edge Stable/Microsoft Edge Dev
    Antivirus
    Norton 360

Latest Support Threads

Top Bottom