Set RD Gateway server address
Définir l’adresse du serveur de passerelle Bureau à distance
Explanation
Specifies the address of the RD Gateway server that clients must use when attempting to connect to an RD Session Host server. You can enforce this policy setting or you can allow users to overwrite this policy setting. By default, when you enable this policy setting, it is enforced. When this policy setting is enforced, users cannot override this setting, even if they select the "Use these RD Gateway server settings" option on the client.
Note: It is highly recommended that you also specify the authentication method by using the "Set RD Gateway authentication method" policy setting. If you do not specify an authentication method by using this setting, either the NTLM protocol that is enabled on the client or a smart card can be used.
To allow users to overwrite the "Set RD Gateway server address" policy setting and connect to another RD Gateway server, you must select the "Allow users to change this setting" check box and users will be allowed to specify an alternate RD Gateway server. Users can specify an alternative RD Gateway server by configuring settings on the client, using an RDP file, or using an HTML script. If users do not specify an alternate RD Gateway server, the server that you specify in this policy setting is used by default.
Note: If you disable or do not configure this policy setting, but enable the "Enable connections through RD Gateway" policy setting, client connection attempts to any remote computer will fail, if the client cannot connect directly to the remote computer. If an RD Gateway server is specified by the user, a client connection attempt will be made through that RD Gateway server.
Spécifie l’adresse du serveur de passerelle Bureau à distance que les clients doivent utiliser lors des tentatives de connexion à un serveur Hôte de la session Bureau à distance. Vous pouvez forcer l’application de ce paramètre de stratégie ou permettre aux utilisateurs de le remplacer. Par défaut, lorsque vous activez ce paramètre de stratégie, il est appliqué. Dans ce cas, les utilisateurs ne peuvent pas le remplacer, même en sélectionnant l'option « Utiliser ces paramètres de serveur de passerelle Bureau à distance » sur le client.
Remarque : il est vivement recommandé de spécifier la méthode d’authentification à l’aide du paramètre de stratégie « Définir la méthode d’authentification du serveur de passerelle Bureau à distance ». Si vous ne spécifiez pas de méthode d’authentification à l’aide de ce paramètre, le protocole NTLM activé sur le client ou une carte à puce peut être utilisé.
Pour autoriser les utilisateurs à remplacer le paramètre de stratégie « Définir l’adresse du serveur de passerelle Bureau à distance » et à se connecter à un autre serveur de passerelle Bureau à distance, vous devez activer la case à cocher « Autoriser les utilisateurs à modifier ce paramètre » et les utilisateurs sont alors autorisés à spécifier un autre serveur de passerelle Bureau à distance. Les utilisateurs peuvent spécifier un autre serveur de passerelle Bureau à distance en configurant des paramètres sur le client, en utilisant un fichier RDP ou en recourant à un script HTML. Si les utilisateurs ne spécifient pas d’autre serveur de passerelle Bureau à distance, le serveur spécifié dans ce paramètre de stratégie est utilisé par défaut.
Remarque : si vous désactivez ce paramètre de stratégie ou ne le configurez pas, mais activez le paramètre de stratégie « Activer les connexions via une passerelle Bureau à distance », les tentatives de connexion des clients à un ordinateur distant échouent si le client ne peut pas se connecter directement à l’ordinateur distant. Si un serveur de passerelle Bureau à distance est spécifié par l’utilisateur, une tentative de connexion du client est effectuée par l’intermédiaire de ce serveur de passerelle Bureau à distance.
Registry
HKEY_CURRENT_USER\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_GATEWAY_POLICY_SERVER
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Allow users to change this setting
Set-ItemProperty -Path $k -Name 'AllowExplicitProxyName' -Value 1 -Type DWord
# Set RD Gateway server address
Set-ItemProperty -Path $k -Name 'ProxyName' -Value '<value>' -Type StringDisable
# Disable: TerminalServer/TS_GATEWAY_POLICY_SERVER
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": TerminalServer/TS_GATEWAY_POLICY_SERVER
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'AllowExplicitProxyName' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ProxyName' -ErrorAction SilentlyContinueOptions (2)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Allow users to change this settingAutoriser les utilisateurs à modifier ce paramètreTS_GATEWAY_OVERRIDE | Check boxboolean | AllowExplicitProxyName | REG_DWORD | Checked: REG_DWORD = 1Unchecked: implicit: 0 |
| Set RD Gateway server addressDéfinir l’adresse du serveur de passerelle Bureau à distanceTS_GATEWAY_SERVER | Text boxtext | ProxyName | REG_SZ | Required · Max length: 260 |