Turn on device control for specific device types
Activer le contrôle d’appareil pour des types d’appareils spécifiques
Explanation
This policy setting controls which device types, identified by their PrimaryIds, will have device control protection turned on. If you enable this setting for certain device types, device control will regulate access to those devices based on the corresponding custom policy. Device control will be turned off for all other types of supported devices, even if custom protection policies are configured for those devices.
This setting currently supports these device types: RemovableMediaDevices, CdRomDevices, WpdDevices, and PrinterDevices.
If you enable this policy setting but do not specify any PrimaryIds, device control will be turned off across all supported device types.
If you disable or don’t configure this policy setting, device control will be enforced on all supported devicesbased on their corresponding custom policies.
Ce paramètre de stratégie contrôle les types d’appareils, identifiés par leurs PrimaryIds, pour lesquels la protection du contrôle d’appareil est activée. Si vous activez ce paramètre pour certains types d’appareils, le contrôle d’appareil réécrit l’accès à ces appareils en fonction de la stratégie personnalisée correspondante. Le contrôle d’appareil sera désactivé pour tous les autres types d’appareils pris en charge, même si des stratégies de protection personnalisées sont configurées pour ces appareils.
Ce paramètre prend actuellement en charge ces types d’appareils : RemovableMediaDevices, CdRomDevices, WpdDevices et PrinterDevices.
Si vous activez ce paramètre de stratégie sans spécifier de PrimaryIds, le contrôle de l’appareil est désactivé sur tous les types d’appareils pris en charge.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, le contrôle de l’appareil est appliqué sur tous les appareils pris en charge basés sur leurs stratégies personnalisées correspondantes.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Device Control- 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_SecuredDevicesConfiguration
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Device Control'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Turn on device control for specific device types
Set-ItemProperty -Path $k -Name 'SecuredDevicesConfiguration' -Value '<value>' -Type StringDisable
# Disable: WindowsDefender/DeviceControl_SecuredDevicesConfiguration
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsDefender/DeviceControl_SecuredDevicesConfiguration
$k = 'HKLM:\Software\Policies\Microsoft\Windows Defender\Device Control'
Remove-ItemProperty -Path $k -Name 'SecuredDevicesConfiguration' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Turn on device control for specific device typesActiver le contrôle d’appareil pour des types d’appareils spécifiquesDeviceControl_SecuredDevicesConfiguration | Text boxtext | SecuredDevicesConfiguration | REG_SZ |