Open in the explorer

Define device control policy groups

Définir les groupes de stratégie de contrôle des appareils

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Defender Antivirus › Device Control FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Antivirus Microsoft Defender › Contrôle de périphérique
Supported on
At least Windows Server 2016, Windows 10 Version 1607 FR: Windows Server 2016, Windows 10 version 1607 ou versions supérieures
ADMX file
WindowsDefender.admx
Internal name
WindowsDefender/DeviceControl_PolicyGroups

Explanation

Please follow the device control policy groups xml schema to fill out the policy groups data.
Alternatively you could use a file path containing the XML groups data.

French text from Windows 11 26H2

Suivez le schéma XML des groupes de stratégies de contrôle d’appareil pour remplir les données des groupes de stratégies.
Vous pouvez également utiliser un chemin de fichier contenant les données des groupes XML.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Device Control\Policy Groups
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: WindowsDefender/DeviceControl_PolicyGroups
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Device Control\Policy Groups'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Define the policy groups here
Set-ItemProperty -Path $k -Name 'PolicyGroups' -Value '<value>' -Type String

Disable

# Disable: WindowsDefender/DeviceControl_PolicyGroups
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": WindowsDefender/DeviceControl_PolicyGroups
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Device Control\Policy Groups'
Remove-ItemProperty -Path $k -Name 'PolicyGroups' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Define the policy groups hereDéfinir les groupes de stratégie iciDeviceControl_PolicyGroupsText boxtextPolicyGroupsREG_SZ
Required

Availability

Windows 10

✓ 22H2✓ 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016