デバイスコントロールの既定の強制ポリシーの選択 のレジストリ値 DefaultEnforcementコンピューターHKLM\Software\Policies\Microsoft\Windows Defender\Device Control

ポリシー ID
DeviceControl_DefaultEnforcement
適用対象
コンピューターの構成
サポートされるバージョン
Windows Server 2016、Windows 10 バージョン 1607 以降
出典
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
カテゴリ
Windows コンポーネント › Microsoft Defender ウイルス対策 › デバイス制御

レジストリ

DefaultEnforcement

REG_DWORDコンピューター
有効時の値
オプションの値に依存
要素
デバイスコントロールの既定の強制ポリシーの選択
オプション
項目保存される値
既定の許可1
既定の拒否2
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Device Control]

; 選択項目 (1 つだけ使用)
; 既定の許可
"DefaultEnforcement"=dword:00000001
; 既定の拒否
"DefaultEnforcement"=dword:00000002
CMD
:: 選択項目 (1 つだけ使用)

:: 既定の許可
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Device Control" /v "DefaultEnforcement" /t REG_DWORD /d 1 /f
:: 既定の拒否
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Device Control" /v "DefaultEnforcement" /t REG_DWORD /d 2 /f
PowerShell
# 共通: キーを作成
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Device Control' -Force | Out-Null

# 選択項目 (1 つだけ使用)
# 既定の許可
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Device Control' -Name 'DefaultEnforcement' -PropertyType DWord -Value 1 -Force | Out-Null
# 既定の拒否
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Device Control' -Name 'DefaultEnforcement' -PropertyType DWord -Value 2 -Force | Out-Null