Open in the explorer

Limit number of monitors

Limiter le nombre de moniteurs

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 2008 R2 or Windows 7 FR: Au minimum Windows Server 2008 R2 ou Windows 7
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_MAXMONITOR

Explanation

This policy setting allows you to limit the number of monitors that a user can use to display a Remote Desktop Services session. Limiting the number of monitors to display a Remote Desktop Services session can improve connection performance, particularly over slow links, and reduce server load.

If you enable this policy setting, you can specify the number of monitors that can be used to display a Remote Desktop Services session. You can specify a number from 1 to 16.

If you disable or do not configure this policy setting, the number of monitors that can be used to display a Remote Desktop Services session is not specified at the Group Policy level.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de limiter le nombre de moniteurs qu’un utilisateur peut utiliser pour afficher une session de services Bureau à distance. La limitation du nombre de moniteurs permettant d’afficher une session de services Bureau à distance peut améliorer les performances de connexion, en particulier en présence de liaisons lentes, et réduire la charge du serveur.

Si vous activez ce paramètre de stratégie, vous pouvez spécifier le nombre de moniteurs pouvant être utilisés pour afficher une session de services Bureau à distance. Vous pouvez spécifier un nombre compris entre 1 et 16.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, le nombre de moniteurs pouvant être utilisés pour afficher une session de services Bureau à distance n’est pas spécifié au niveau de la stratégie de groupe.

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_MAXMONITOR
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Maximum Monitors
Set-ItemProperty -Path $k -Name 'MaxMonitors' -Value 1 -Type DWord  # between 1 and 16

Disable

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

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Maximum MonitorsAnalyses maximalesTS_Max_MonitorNumeric boxdecimalMaxMonitorsREG_DWORD
Required · Min: 1 · Max: 16 · Default (UI): 1

Availability