Allow hardware-accelerated rendering for Microsoft Defender Application Guard
Autoriser rendu avec accélération matérielle pour Microsoft Defender Application Guard
Explanation
This policy setting determines whether Microsoft Defender Application Guard renders graphics using hardware or software acceleration.
If you enable this setting, Microsoft Defender Application Guard uses Hyper-V to access supported, high-security rendering graphics hardware (GPUs). These GPUs improve rendering performance and battery life while using Microsoft Defender Application Guard, particularly for video playback and other graphics-intensive use cases. If you enable this setting without connecting any high-security rendering graphics hardware, Microsoft Defender Application Guard will automatically revert to software-based (CPU) rendering.
Note:
Be aware that enabling this setting with potentially compromised graphics devices or drivers might pose a risk to the host device.
If you disable or don’t configure this setting, Microsoft Defender Application Guard uses software-based (CPU) rendering and won’t load any third-party graphics drivers or interact with any connected graphics hardware.
Ce paramètre de stratégie détermine si Microsoft Defender Application Guard restitue les graphismes à l’aide de l’accélération matérielle ou logicielle.
Si vous activez ce paramètre, Microsoft Defender Application Guard utilise Hyper-V pour accéder au matériel vidéo avec restitution hautement sécurisée. Ces unités de GPU améliorent l’autonomie de la batterie et les performances de restitution lors de l’utilisation de Microsoft Defender Application Guard, en particulier pour la lecture vidéo et les autres utilisations sollicitant fortement les performances graphiques. Si vous activez ce paramètre sans vous connecter à du matériel graphique avec rendu hautement sécurisé, Microsoft Defender Application Guard récupérera automatiquement un rendu basé sur des logiciels (UC).
Remarque :
N’oubliez pas que l’activation de ce paramètre sur des appareils aux graphismes ou pilotes potentiellement compromis peut présenter un risque pour l'appareil hôte.
Si vous désactivez ou ne configurez pas ce paramètre, Microsoft Defender Application Guard utilise le rendu (UC) basé sur des logiciels et la solution ne chargera aucun pilote tiers et n'interagira avec aucun matériel graphique connecté.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\AppHVSI- Value name
AllowVirtualGPU
| 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: apphvsi/AppHVSI_AllowVirtualGPU
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowVirtualGPU' -Value 1 -Type DWordDisable
# Disable: apphvsi/AppHVSI_AllowVirtualGPU
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowVirtualGPU' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": apphvsi/AppHVSI_AllowVirtualGPU
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
Remove-ItemProperty -Path $k -Name 'AllowVirtualGPU' -ErrorAction SilentlyContinue