Set RD Gateway server address: registry value AllowExplicitProxyName and 1 moreUserHKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
- Policy ID
- TS_GATEWAY_POLICY_SERVER
- Scope
- User Configuration
- Supported on
- At least Windows Server 2003 operating systems with SP1 or Windows XP Professional with SP2
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Remote Desktop Services › RD Gateway
Registry
AllowExplicitProxyName
REG_DWORDUser- Checked
- 1
- Element
- Allow users to change this setting
- Value type
- REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services] ; Options (use only one) ; Checked "AllowExplicitProxyName"=dword:00000001
CMD
:: Options (use only one) :: Checked reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "AllowExplicitProxyName" /t REG_DWORD /d 1 /f
PowerShell
# Common: create the key New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null # Options (use only one) # Checked New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'AllowExplicitProxyName' -PropertyType DWord -Value 1 -Force | Out-Null
ProxyName
REG_SZUser- Enabled value
- Depends on the option value
- Element
- Set RD Gateway server address
- Value type
- REG_SZ
- Required
- true
- Maximum length
- 260
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "ProxyName"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "ProxyName" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'ProxyName' -PropertyType String -Value '<enter value>' -Force | Out-Null