Windows ファイル保護のスキャンを設定する のレジストリ値 SfcScanコンピューターHKLM\Software\Policies\Microsoft\Windows NT\Windows File Protection
- ポリシー ID
- WFPScan
- 適用対象
- コンピューターの構成
- サポートされるバージョン
- Windows Server 2003、Windows XP、Windows 2000 のみ
- 出典
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
- カテゴリ
- システム › Windows ファイル保護
レジストリ
SfcScan
REG_DWORDコンピューター- 有効時の値
- オプションの値に依存
- 要素
- スキャンの間隔:
| 項目 | 保存される値 |
|---|---|
| スタートアップ中はスキャンしない | 0 |
| スタートアップ中にスキャンする | 1 |
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Windows File Protection] ; 選択項目 (1 つだけ使用) ; スタートアップ中はスキャンしない "SfcScan"=dword:00000000 ; スタートアップ中にスキャンする "SfcScan"=dword:00000001
CMD
:: 選択項目 (1 つだけ使用) :: スタートアップ中はスキャンしない reg add "HKLM\Software\Policies\Microsoft\Windows NT\Windows File Protection" /v "SfcScan" /t REG_DWORD /d 0 /f :: スタートアップ中にスキャンする reg add "HKLM\Software\Policies\Microsoft\Windows NT\Windows File Protection" /v "SfcScan" /t REG_DWORD /d 1 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Windows File Protection' -Force | Out-Null # 選択項目 (1 つだけ使用) # スタートアップ中はスキャンしない New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Windows File Protection' -Name 'SfcScan' -PropertyType DWord -Value 0 -Force | Out-Null # スタートアップ中にスキャンする New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Windows File Protection' -Name 'SfcScan' -PropertyType DWord -Value 1 -Force | Out-Null