如果某些 Windows 功能无法使用或 Windows 崩溃,请使用系统文件检查器扫描 Windows 并还原系统文件。SFC /SCANNOW 命令扫描所有受保护系统文件的完整性,并用正确的 Microsoft 版本替换不正确的(损坏或修改的)版本。本教程大眼仔旭(www.dayanzai.me)将向您展示如何在 Windows 10 中添加 SFC SCANNOW 桌面上下文菜单。SFC SCANNOW 上下文菜单将允许您根据需要快速运行 SFC /SCANNOW 命令以完成 Windows 10 系统修复命令。
当 SFC 在 Windows 中运行时,它将其操作记录到 C:/Windows/Logs/CBS/CBS.log 文件中。上下文菜单中的 SFC 扫描详细信息日志项将在您的桌面上创建 sfcdetails.txt 文件,以仅查看带有从 CBS.log 筛选出的 [SR] 标签的特定 SFC 条目以获取 SFC 扫描日志详细信息。
如果 SFC 无法修复某些问题,请再次运行该命令,以查看下次是否可以修复该问题。有时,在快速启动关闭的情况下,最多可能需要运行 sfc /scannow 命令 3 次,并在每次之后完全重新启动计算机才能完全修复其能力。
如果不是,请运行 Dism /Online /Cleanup-Image /RestoreHealth(需要 Internet 连接)命令来修复任何组件存储损坏,然后重新启动计算机,然后尝试再次运行 sfc /scannow 命令。
如果仍然没有,请使用发生在系统文件损坏之前的还原点进行系统还原,以对其进行修复。您可能需要重复进行系统还原,直到找到较旧的还原点为止,如果 SFC 在执行系统还原后仍发现损坏的系统文件,则该还原点可能会起作用。
如果仍然没有,并且您想在论坛上获得有关SFC问题的帮助,然后再继续进行以下更严格的措施,请使用上下文菜单中的SFC扫描详细信息日志在桌面上创建 sfcdetails.txt 文件,然后上传并将 sfcdetails.txt 文件与有关 SFC 问题的任何其他详细信息一起附加。
如果仍然没有,那么您可以进行修复安装而不会丢失任何东西。如果仍然没有,则可以刷新的 Windows 10。
要添加右键单击“SFC SCANNOW”上下文菜单
复制以下注册表值,新建空白文本粘贴并保存。修改 .txt 后缀为 .reg 格式,然后双击导入注册表。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT/DesktopBackground/Shell/SFC]
"Icon"="WmiPrvSE.exe"
"MUIVerb"="SFC /SCANNOW"
"Position"="Bottom"
"Extended"=-
"SubCommands"=""
[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT/DesktopBackground/Shell/SFC]
"Icon"="WmiPrvSE.exe"
"MUIVerb"="SFC /SCANNOW"
"Position"="Bottom"
"Extended"=-
"SubCommands"=""
[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell/001menu]
"HasLUAShield"=""
"MUIVerb"="运行 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"="SFC 扫描详细日志"
[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""1menu]
"HasLUAShield"=""
"MUIVerb"="运行 SFC /SCANNOW"[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT/DesktopBackground/Shell/SFC]
"Icon"="WmiPrvSE.exe"
"MUIVerb"="SFC /SCANNOW"
"Position"="Bottom"
"Extended"=-
"SubCommands"=""
[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell/001menu]
"HasLUAShield"=""
"MUIVerb"="运行 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"="SFC 扫描详细日志"
[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""1menu/command]
@="PowerShell -windowstyle hidden -command "Start-Process cmd -ArgumentList '/s,/k, sfc /scannow' -Verb runAs""[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT/DesktopBackground/Shell/SFC]
"Icon"="WmiPrvSE.exe"
"MUIVerb"="SFC /SCANNOW"
"Position"="Bottom"
"Extended"=-
"SubCommands"=""
[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell/001menu]
"HasLUAShield"=""
"MUIVerb"="运行 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"="SFC 扫描详细日志"
[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""2menu]
"MUIVerb"="SFC 扫描详细日志"[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT/DesktopBackground/Shell/SFC]
"Icon"="WmiPrvSE.exe"
"MUIVerb"="SFC /SCANNOW"
"Position"="Bottom"
"Extended"=-
"SubCommands"=""
[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell/001menu]
"HasLUAShield"=""
"MUIVerb"="运行 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"="SFC 扫描详细日志"
[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""2menu/command]
@="PowerShell (sls [SR] $env:windir//Logs//CBS//CBS.log -s).Line >"$env:userprofile//Desktop//sfcdetails.txt""要添加 Shift + 右键单击“SFC SCANNOW”上下文菜单
复制以下注册表值,新建空白文本粘贴并保存。修改 .txt 后缀为 .reg 格式,然后双击导入注册表。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT/DesktopBackground/Shell/SFC]
"Icon"="WmiPrvSE.exe"
"MUIVerb"="SFC /SCANNOW"
"Position"="Bottom"
"Extended"=""
"SubCommands"=""
[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT/DesktopBackground/Shell/SFC]
"Icon"="WmiPrvSE.exe"
"MUIVerb"="SFC /SCANNOW"
"Position"="Bottom"
"Extended"=""
"SubCommands"=""
[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell/001menu]
"HasLUAShield"=""
"MUIVerb"="运行 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"="SFC 扫描详细日志"
[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""1menu]
"HasLUAShield"=""
"MUIVerb"="运行 SFC /SCANNOW"[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT/DesktopBackground/Shell/SFC]
"Icon"="WmiPrvSE.exe"
"MUIVerb"="SFC /SCANNOW"
"Position"="Bottom"
"Extended"=""
"SubCommands"=""
[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell/001menu]
"HasLUAShield"=""
"MUIVerb"="运行 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"="SFC 扫描详细日志"
[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""1menu/command]
@="PowerShell -windowstyle hidden -command "Start-Process cmd -ArgumentList '/s,/k, sfc /scannow' -Verb runAs""[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT/DesktopBackground/Shell/SFC]
"Icon"="WmiPrvSE.exe"
"MUIVerb"="SFC /SCANNOW"
"Position"="Bottom"
"Extended"=""
"SubCommands"=""
[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell/001menu]
"HasLUAShield"=""
"MUIVerb"="运行 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"="SFC 扫描详细日志"
[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""2menu]
"MUIVerb"="SFC 扫描详细日志"[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT/DesktopBackground/Shell/SFC]
"Icon"="WmiPrvSE.exe"
"MUIVerb"="SFC /SCANNOW"
"Position"="Bottom"
"Extended"=""
"SubCommands"=""
[HKEY_CLASSES_ROOT/DesktopBackground/shell/SFC/shell/001menu]
"HasLUAShield"=""
"MUIVerb"="运行 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"="SFC 扫描详细日志"
[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""2menu/command]
@="PowerShell (sls [SR] $env:windir//Logs//CBS//CBS.log -s).Line >"$env:userprofile//Desktop//sfcdetails.txt""删除“SFC SCANNOW”上下文菜单
复制以下注册表值,新建空白文本粘贴并保存。修改 .txt 后缀为 .reg 格式,然后双击导入注册表。
1
2
3 Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT/DesktopBackground/Shell/SFC]原创文章,作者:506227337,如若转载,请注明出处:https://blog.ytso.com/213921.html