Limit number of monitors
Limiter le nombre de moniteurs
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.
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 16Disable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Maximum MonitorsAnalyses maximalesTS_Max_Monitor | Numeric boxdecimal | MaxMonitors | REG_DWORD | Required · Min: 1 · Max: 16 · Default (UI): 1 |