Imposta modalità gestione licenze Desktop remoto: valore del Registro di sistema LicensingModeComputerHKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

ID criterio
TS_LICENSING_MODE
Ambito
Configurazione computer
Supportato in
Almeno Windows Server 2003 con Service Pack 1
Origine
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
Categoria
Componenti di Windows › Servizi Desktop remoto › Host sessione di Desktop remoto › Gestione licenze

Registro

LicensingMode

REG_DWORDComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
Selezionare la modalità di gestione licenze per questo server host sessione Desktop remoto.
Opzioni
VoceValore memorizzato
Per Dispositivo2
Per utente4
AAD per utente6
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services]

; Opzioni (usarne solo una)
; Per Dispositivo
"LicensingMode"=dword:00000002
; Per utente
"LicensingMode"=dword:00000004
; AAD per utente
"LicensingMode"=dword:00000006
CMD
:: Opzioni (usarne solo una)

:: Per Dispositivo
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "LicensingMode" /t REG_DWORD /d 2 /f
:: Per utente
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "LicensingMode" /t REG_DWORD /d 4 /f
:: AAD per utente
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "LicensingMode" /t REG_DWORD /d 6 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null

# Opzioni (usarne solo una)
# Per Dispositivo
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'LicensingMode' -PropertyType DWord -Value 2 -Force | Out-Null
# Per utente
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'LicensingMode' -PropertyType DWord -Value 4 -Force | Out-Null
# AAD per utente
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'LicensingMode' -PropertyType DWord -Value 6 -Force | Out-Null