Limit maximum display resolution
Limiter la résolution d'affichage maximale
Explanation
This policy setting allows you to specify the maximum display resolution that can be used by each monitor used to display a Remote Desktop Services session. Limiting the resolution used to display a remote session can improve connection performance, particularly over slow links, and reduce server load.
If you enable this policy setting, you must specify a resolution width and height. The resolution specified will be the maximum resolution that can be used by each monitor used to display a Remote Desktop Services session.
If you disable or do not configure this policy setting, the maximum resolution that can be used by each monitor to display a Remote Desktop Services session will be determined by the values specified on the Display Settings tab in the Remote Desktop Session Host Configuration tool.
Ce paramètre de stratégie vous permet de spécifier la résolution d'affichage maximale pouvant être utilisée par chaque moniteur utilisé pour afficher une session de services Bureau à distance. La limitation de la résolution utilisée pour afficher une session à distance peut améliorer les performances de connexion, en particulier en cas de liaisons lentes, et réduire la charge de travail du serveur.
Si vous activez ce paramètre de stratégie, vous devez spécifier une largeur et une hauteur de résolution. La résolution spécifiée sera la résolution maximale pouvant être appliquée à chaque moniteur utilisé pour afficher une session de services Bureau à distance.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, la résolution maximale pouvant être utilisée par chaque moniteur pour afficher une session de services Bureau à distance sera déterminée par les valeurs spécifiées sous l'onglet Paramètres d'affichage dans l'outil Configuration de l'hôte de la session Bureau à distance.
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_MAXDISPLAYRES
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Width
Set-ItemProperty -Path $k -Name 'MaxXResolution' -Value 640 -Type DWord # between 640 and 8192
# Height
Set-ItemProperty -Path $k -Name 'MaxYResolution' -Value 480 -Type DWord # between 480 and 8192Disable
# Disable: TerminalServer/TS_MAXDISPLAYRES
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": TerminalServer/TS_MAXDISPLAYRES
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'MaxXResolution' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'MaxYResolution' -ErrorAction SilentlyContinueOptions (2)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| WidthLargeurTS_DisplayRes_Width | Numeric boxdecimal | MaxXResolution | REG_DWORD | Required · Min: 640 · Max: 8192 |
| HeightHauteurTS_DisplayRes_Height | Numeric boxdecimal | MaxYResolution | REG_DWORD | Required · Min: 480 · Max: 8192 |