Open in the explorer

Configure compression for RemoteFX data

Configurer la compression pour les données RemoteFX

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 Vista with Service Pack 1 FR: Au minimum Windows Vista avec Service Pack 1
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_SERVER_COMPRESSOR

Explanation

This policy setting allows you to specify which Remote Desktop Protocol (RDP) compression algorithm to use.

By default, servers use an RDP compression algorithm that is based on the server's hardware configuration.

If you enable this policy setting, you can specify which RDP compression algorithm to use. If you select the algorithm that is optimized to use less memory, this option is less memory-intensive, but uses more network bandwidth. If you select the algorithm that is optimized to use less network bandwidth, this option uses less network bandwidth, but is more memory-intensive. Additionally, a third option is available that balances memory usage and network bandwidth. In Windows 8 only the compression algorithm that balances memory usage and bandwidth is used.

You can also choose not to use an RDP compression algorithm. Choosing not to use an RDP compression algorithm will use more network bandwidth and is only recommended if you are using a hardware device that is designed to optimize network traffic. Even if you choose not to use an RDP compression algorithm, some graphics data will still be compressed.

If you disable or do not configure this policy setting, the default RDP compression algorithm will be used.

French text from Windows 11 26H2

Ce paramètre de stratégie permet de spécifier l’algorithme de compression RDP (Remote Desktop Protocol) à utiliser.

Par défaut, les serveurs utilisent un algorithme de compression RDP qui dépend de la configuration matérielle du serveur.

Si vous activez ce paramètre de stratégie, vous pouvez spécifier l’algorithme de compression RDP à utiliser. Si vous sélectionnez l’algorithme optimisé pour consommer moins de mémoire, cette option sollicite moins de mémoire, mais la bande passante réseau utilisée est supérieure. Si vous sélectionnez l’algorithme optimisé pour utiliser moins de bande passante réseau, cette option restreint l’utilisation de la bande passante réseau, mais sollicite davantage de mémoire. Une troisième option est disponible pour utiliser la mémoire et la bande passante réseau de façon équilibrée. Dans Windows 8, seul l’algorithme de compression qui équilibre l’utilisation de la mémoire et la bande passante est utilisé.

Vous pouvez également décider de ne pas utiliser d’algorithme de compression RDP. Si vous décidez de ne pas utiliser d’algorithme de compression RDP, vous utilisez davantage de bande passante réseau et ceci n’est recommandé que si vous utilisez un périphérique matériel conçu pour optimiser le trafic sur le réseau. Même si vous décidez de ne pas recourir à un algorithme de compression RDP, certaines données graphiques sont compressées.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, l’algorithme de compression RDP par défaut est utilisé.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
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: TerminalServer/TS_SERVER_COMPRESSOR
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# RDP compression algorithm
# Possible options:
#   Optimized to use less memory = 1
#   Optimized to use less network bandwidth = 3
#   Balances memory and network bandwidth = 2
#   Do not use an RDP compression algorithm = 0
Set-ItemProperty -Path $k -Name 'MaxCompressionLevel' -Value 1 -Type DWord

Disable

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

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
RDP compression algorithm:Algorithme de compression RDP :TS_COMPRESSOR_LEVELSDrop-down listenumMaxCompressionLevelREG_DWORD
Default choice (UI): #0
LabelValue
Optimized to use less memoryREG_DWORD = 1
Optimized to use less network bandwidthREG_DWORD = 3
Balances memory and network bandwidthREG_DWORD = 2
Do not use an RDP compression algorithmREG_DWORD = 0

Availability