雲端原則詳細資料 的登錄值 cloudid 等 6 個電腦HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload
- 原則 ID
- trv2_payload
- 適用範圍
- 電腦設定
- 支援的作業系統
- Windows 10 版本 1909 以上
- 來源
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
- 類別
- Windows 元件 › 租用戶限制
登錄
cloudid
REG_SZ電腦- 啟用時的值
- 取決於選項值
- 元素
- 雲端識別碼 (選擇性):
- 值類型
- REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload] ; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> "cloudid"="<輸入值>"
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "cloudid" /t REG_SZ /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Force | Out-Null New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'cloudid' -PropertyType String -Value '<輸入值>' -Force | Out-Null
tenantid
REG_SZ電腦- 啟用時的值
- 取決於選項值
- 元素
- Azure AD 目錄識別碼:
- 值類型
- REG_SZ
- 必要
- true
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload] ; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> "tenantid"="<輸入值>"
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "tenantid" /t REG_SZ /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Force | Out-Null New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'tenantid' -PropertyType String -Value '<輸入值>' -Force | Out-Null
policyid
REG_SZ電腦- 啟用時的值
- 取決於選項值
- 元素
- 原則 GUID:
- 值類型
- REG_SZ
- 必要
- true
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload] ; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> "policyid"="<輸入值>"
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "policyid" /t REG_SZ /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Force | Out-Null New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'policyid' -PropertyType String -Value '<輸入值>' -Force | Out-Null
enforceFirewall
REG_DWORD電腦- 已核取
- 1
- 未核取
- (刪除值)
- 元素
- 啟用 Microsoft 端點的防火牆保護
- 值類型
- REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload] ; 選項 (只使用其中一個) ; 已核取 "enforceFirewall"=dword:00000001 ; 未核取 "enforceFirewall"=-
CMD
:: 選項 (只使用其中一個) :: 已核取 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "enforceFirewall" /t REG_DWORD /d 1 /f :: 未核取 reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "enforceFirewall" /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Force | Out-Null # 選項 (只使用其中一個) # 已核取 New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'enforceFirewall' -PropertyType DWord -Value 1 -Force | Out-Null # 未核取 Remove-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'enforceFirewall'
hostnames
REG_MULTI_SZ電腦- 啟用時的值
- 取決於選項值
- 元素
- 主機名稱 (選用):
- 值類型
- REG_MULTI_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload] ; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> ; hex(2) 與 hex(7) 資料必須以十六進位 (UTF-16LE) 撰寫 "hostnames"=hex(7):<輸入值>
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "hostnames" /t REG_MULTI_SZ /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Force | Out-Null New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'hostnames' -PropertyType MultiString -Value '<輸入值>' -Force | Out-Null
subdomainSupportedHostnames
REG_MULTI_SZ電腦- 啟用時的值
- 取決於選項值
- 元素
- 子網域支援的主機名稱 (選用):
- 值類型
- REG_MULTI_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload] ; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> ; hex(2) 與 hex(7) 資料必須以十六進位 (UTF-16LE) 撰寫 "subdomainSupportedHostnames"=hex(7):<輸入值>
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "subdomainSupportedHostnames" /t REG_MULTI_SZ /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Force | Out-Null New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'subdomainSupportedHostnames' -PropertyType MultiString -Value '<輸入值>' -Force | Out-Null
ipRanges
REG_MULTI_SZ電腦- 啟用時的值
- 取決於選項值
- 元素
- IP 範圍 (選用):
- 值類型
- REG_MULTI_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload] ; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> ; hex(2) 與 hex(7) 資料必須以十六進位 (UTF-16LE) 撰寫 "ipRanges"=hex(7):<輸入值>
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "ipRanges" /t REG_MULTI_SZ /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值> New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Force | Out-Null New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'ipRanges' -PropertyType MultiString -Value '<輸入值>' -Force | Out-Null