リモート デスクトップ ライセンス モードの設定 のレジストリ値 LicensingModeコンピューターHKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
- ポリシー ID
- TS_LICENSING_MODE
- 適用対象
- コンピューターの構成
- サポートされるバージョン
- Windows Server 2003 Service Pack 1 以降
- 出典
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (バージョン 1.0)
- カテゴリ
- Windows コンポーネント › リモート デスクトップ サービス › リモート デスクトップ セッション ホスト › ライセンス
レジストリ
LicensingMode
REG_DWORDコンピューター- 有効時の値
- オプションの値に依存
- 要素
- RD セッション ホスト サーバーのライセンス モードを指定する。
| 項目 | 保存される値 |
|---|---|
| 接続デバイス数 | 2 |
| 接続ユーザー数 | 4 |
| AAD 接続ユーザー数 | 6 |
.reg · CMD · PowerShell で適用する
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services] ; 選択項目 (1 つだけ使用) ; 接続デバイス数 "LicensingMode"=dword:00000002 ; 接続ユーザー数 "LicensingMode"=dword:00000004 ; AAD 接続ユーザー数 "LicensingMode"=dword:00000006
CMD
:: 選択項目 (1 つだけ使用) :: 接続デバイス数 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "LicensingMode" /t REG_DWORD /d 2 /f :: 接続ユーザー数 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "LicensingMode" /t REG_DWORD /d 4 /f :: AAD 接続ユーザー数 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "LicensingMode" /t REG_DWORD /d 6 /f
PowerShell
# 共通: キーを作成 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null # 選択項目 (1 つだけ使用) # 接続デバイス数 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'LicensingMode' -PropertyType DWord -Value 2 -Force | Out-Null # 接続ユーザー数 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'LicensingMode' -PropertyType DWord -Value 4 -Force | Out-Null # AAD 接続ユーザー数 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'LicensingMode' -PropertyType DWord -Value 6 -Force | Out-Null