Set the Remote Desktop licensing mode: registry value LicensingModeComputerHKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
- Policy ID
- TS_LICENSING_MODE
- Scope
- Computer Configuration
- Supported on
- At least Windows Server 2003 with Service Pack 1
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Remote Desktop Services › Remote Desktop Session Host › Licensing
Registry
LicensingMode
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- Specify the licensing mode for the RD Session Host server.
| Item | Stored value |
|---|---|
| Per Device | 2 |
| Per User | 4 |
| AAD Per User | 6 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services] ; Options (use only one) ; Per Device "LicensingMode"=dword:00000002 ; Per User "LicensingMode"=dword:00000004 ; AAD Per User "LicensingMode"=dword:00000006
CMD
:: Options (use only one) :: Per Device reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "LicensingMode" /t REG_DWORD /d 2 /f :: Per User reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "LicensingMode" /t REG_DWORD /d 4 /f :: AAD Per User reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "LicensingMode" /t REG_DWORD /d 6 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null # Options (use only one) # Per Device New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'LicensingMode' -PropertyType DWord -Value 2 -Force | Out-Null # Per User New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'LicensingMode' -PropertyType DWord -Value 4 -Force | Out-Null # AAD Per User New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'LicensingMode' -PropertyType DWord -Value 6 -Force | Out-Null