Open in the explorer

Use the hardware default graphics adapter for all Remote Desktop Services sessions

Utiliser la carte graphique par défaut du matériel pour toutes les sessions de services Bureau à distance

From Windows 10 1607, this policy is replaced by TerminalServer/TS_DX_USE_FULL_HWGPU (moved to another file).

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Remote Session Environment FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Hôte de la session Bureau à distance › Environnement de session à distance
Supported on
At least Windows Server 2012 with RDSH role installed FR: Au minimum Windows Server 2012 avec le rôle Hôte de la session Bureau à distance installé
ADMX file
Terminalserver-Server.admx
Internal name
Terminalserver-Server/TS_DX_USE_FULL_HWGPU

Explanation

This policy setting enables system administrators to change the graphics rendering for all Remote Desktop Services sessions on a Remote Desktop Session Host (RD Session Host) server.

If you enable this policy setting, all Remote Desktop Services sessions on the RD Session Host server use the hardware graphics renderer instead of the Microsoft Basic Render Driver as the default adapter.

If you disable or do not configure this policy setting, all Remote Desktop Services sessions on the RD Session Host server use the Microsoft Basic Render Driver as the default adapter.

NOTE: The policy setting affects only the default graphics processing unit (GPU) on a computer with more than one GPU installed. All additional GPUs are considered secondary adapters and used as hardware renderers. The GPU configuration of the local session is not affected by this policy setting.

French text from Windows 10 1511

Ce paramètre de stratégie permet aux administrateurs système de modifier le rendu graphique pour toutes les sessions de services Bureau à distance sur un serveur hôte de session Bureau à distance.

Si vous activez ce paramètre de stratégie, toutes les sessions de services Bureau à distance du serveur hôte de session Bureau à distance utilisent le rendu graphique matériel à la place du pilote de rendu de base Microsoft en tant qu’adaptateur par défaut.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, toutes les sessions de services Bureau à distance du serveur hôte de session Bureau à distance utilisent le pilote de rendu de base Microsoft en tant qu’adaptateur par défaut.

REMARQUE : le paramètre de stratégie affecte uniquement l’unité de traitement graphique par défaut (GPU) d’un ordinateur doté de plusieurs unités de traitement graphique. Toutes les unités de traitement graphique supplémentaires sont considérées comme des adaptateurs secondaires et sont utilisées en tant qu’unités de rendu matérielles. La configuration de l’unité de traitement graphique de la session locale n’est pas affectée par ce paramètre de stratégie.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
bEnumerateHWBeforeSW
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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: Terminalserver-Server/TS_DX_USE_FULL_HWGPU
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'bEnumerateHWBeforeSW' -Value 1 -Type DWord

Disable

# Disable: Terminalserver-Server/TS_DX_USE_FULL_HWGPU
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'bEnumerateHWBeforeSW' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Terminalserver-Server/TS_DX_USE_FULL_HWGPU
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'bEnumerateHWBeforeSW' -ErrorAction SilentlyContinue

Availability

Windows 11

— 26H2— 25H2— 24H2— 23H2— 22H2— 21H2

Windows 10

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

Windows Server

— 2025— 2022— 2016