Disable new DMA devices when this computer is locked
Désactiver les nouveaux périphériques DMA lorsque cet ordinateur est verrouillé
Explanation
This policy setting allows you to block direct memory access (DMA) for all Thunderbolt hot pluggable PCI downstream ports until a user logs into Windows. Once a user logs in, Windows will enumerate the PCI devices connected to the host Thunderbolt PCI ports. Every time the user locks the machine, DMA will be blocked on hot plug Thunderbolt PCI ports with no children devices, until the user logs in again. Devices which were already enumerated when the machine was unlocked will continue to function until unplugged or the system is rebooted or hibernated. This policy setting is only enforced when BitLocker or device encryption is enabled.
Note: Some PCs may not be compatible with this policy if the system firmware enables DMA for newly attached Thunderbolt devices before exposing the new devices to Windows.
Ce paramètre de stratégie vous permet de bloquer l'accès direct à la mémoire (DMA) pour tous les ports PCI en aval enfichables à chaud Thunderbolt jusqu'à ce qu'un utilisateur se connecte à Windows. Une fois qu'un utilisateur se connecte, Windows énumère les appareils PCI connectés aux ports PCI de l'hôte Thunderbolt. Chaque fois que l'utilisateur verrouille la machine, DMA est bloqué sur les ports PCI enfichables à chaud Thunderbolt sans appareil enfant, jusqu'à ce que l'utilisateur se reconnecte. Les appareils qui ont déjà été énumérés lorsque la machine a été déverrouillée continueront à fonctionner jusqu'à ce qu'ils soient débranchés ou que le système soit redémarré ou mis en veille prolongée. Ce paramètre de stratégie n'est appliqué que lorsque BitLocker ou le chiffrement de l’appareil est activé.
Remarque : certains ordinateurs ne sont peut-être pas compatibles avec cette stratégie si le microprogramme système active DMA pour les appareils Thunderbolt connectés récemment avant d'exposer les nouveaux appareils à Windows.
Use cases
Blocks new DMA devices on hot-pluggable Thunderbolt ports until a user signs in, and every time the session is locked. It defends against physical DMA attacks (a device plugged into a locked laptop), a risk the BitLocker FAQ mentions when data remains in memory.
It only matters on machines with Thunderbolt ports; check that your docking stations keep working.
Microsoft source: BitLocker FAQ
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\FVE- Value name
DisableExternalDMAUnderLock
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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: VolumeEncryption/DisableExternalDMAUnderLock_Name
$k = 'HKLM:\Software\Policies\Microsoft\FVE'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableExternalDMAUnderLock' -Value 1 -Type DWordDisable
# Disable: VolumeEncryption/DisableExternalDMAUnderLock_Name
$k = 'HKLM:\Software\Policies\Microsoft\FVE'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableExternalDMAUnderLock' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": VolumeEncryption/DisableExternalDMAUnderLock_Name
$k = 'HKLM:\Software\Policies\Microsoft\FVE'
Remove-ItemProperty -Path $k -Name 'DisableExternalDMAUnderLock' -ErrorAction SilentlyContinue