Use port range for RDP Shortpath for unmanaged networks
Computer Configuration > Administrative Templates > TS_TERMINAL_SERVER > Azure Virtual Desktop
AVD_SERVER_UDP_STUN_CLIENT_PORT_RANGE terminalserver-avd.admx Azure Virtual Desktop Registry
| Key (computer) | HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services |
|---|---|
| Value name | ICEEnableClientPortRange |
| Supported on | Azure Virtual Desktop |
| Namespace | Microsoft.Policies.TerminalServer-AVD |
Options
Option Value written Type and range Default UDP port base ICEClientPortBase REG_DWORD, 1024 to 49151 38300 Port pool size ICEClientPortRange REG_DWORD, 100 to 65535 1000
What each state writes
Computed with the same rules RFF Conformance uses, with the default options. Pick your own options in the builder below.
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services | ICEEnableClientPortRange | 1 REG_DWORD |
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services | ICEClientPortBase | 38300 REG_DWORD |
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services | ICEClientPortRange | 1000 REG_DWORD |
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services | ICEEnableClientPortRange | 0 REG_DWORD |
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services | ICEClientPortBase | value removed |
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services | ICEClientPortRange | value removed |
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services | ICEEnableClientPortRange | value removed |
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services | ICEClientPortBase | value removed |
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services | ICEClientPortRange | value removed |
In Intune
Intune sets third-party templates by importing the ADMX first. In the admin center that is Devices > Configuration > Import ADMX, then a profile from Imported Administrative templates. With a custom (OMA-URI) profile instead, ingest the file once and then set the policy:
| 1. Ingest the ADMX | ./Device/Vendor/MSFT/Policy/ConfigOperations/ADMXInstall/AzureVirtualDesktop/Policy/terminalserver-avd String value: the whole contents of terminalserver-avd.admx. "AzureVirtualDesktop" is a name you choose; use the same one below. |
|---|---|
| 2. Set it (device) | ./Device/Vendor/MSFT/Policy/Config/AzureVirtualDesktop~Policy~AVD_GP_NODE/AVD_SERVER_UDP_STUN_CLIENT_PORT_RANGE |
| Value to enable | <enabled/><data id="Part_ICEClientPortBase" value="38300"/><data id="Part_ICEClientPortRange" value="1000"/> |
| Value to disable | <disabled/> |
Path format from Microsoft's ADMX ingestion documentation; the category part comes from this ADMX.
Build it
Choose a state and options. You get the exact writes, a .reg file, a script that applies them, and a script that checks a machine and reports drift. Nothing leaves your browser.
Keep it set across your fleet
Group Policy writes these values once per refresh and never tells you when something changes them back. RFF Conformance reads them from every computer, shows which ones drifted and who changed them, and puts them back on approval, with each change versioned and undoable. It works without a domain controller.
Source: Azure Virtual Desktop and Windows App policy templates, version unknown, published by Microsoft 2026-10-02. Policy names and option labels are Microsoft's. Microsoft's full description of this setting: search Microsoft Learn.
ADMX Viewer is open source: github.com/deadarcher/AdmxViewer. Found a wrong registry value, a missing catalog, or a template that won't load? Open an issue, email brian@getrff.com, or use the form below.
Your note and the summary below are all that get sent. Your file stays on your machine.