Cloud Policy Details: registry value cloudid and 6 moreComputerHKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload
- Policy ID
- trv2_payload
- Scope
- Computer Configuration
- Supported on
- At least Windows 10 Version 1909
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Tenant Restrictions
Registry
cloudid
REG_SZComputer- Enabled value
- Depends on the option value
- Element
- Cloud ID (optional):
- Value type
- REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "cloudid"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "cloudid" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data 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 '<enter value>' -Force | Out-Null
tenantid
REG_SZComputer- Enabled value
- Depends on the option value
- Element
- Azure AD Directory ID:
- Value type
- REG_SZ
- Required
- true
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "tenantid"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "tenantid" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data 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 '<enter value>' -Force | Out-Null
policyid
REG_SZComputer- Enabled value
- Depends on the option value
- Element
- Policy GUID:
- Value type
- REG_SZ
- Required
- true
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "policyid"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "policyid" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data 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 '<enter value>' -Force | Out-Null
enforceFirewall
REG_DWORDComputer- Checked
- 1
- Unchecked
- (delete value)
- Element
- Enable firewall protection of Microsoft endpoints
- Value type
- REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload] ; Options (use only one) ; Checked "enforceFirewall"=dword:00000001 ; Unchecked "enforceFirewall"=-
CMD
:: Options (use only one) :: Checked reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "enforceFirewall" /t REG_DWORD /d 1 /f :: Unchecked reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "enforceFirewall" /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Force | Out-Null # Options (use only one) # Checked New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'enforceFirewall' -PropertyType DWord -Value 1 -Force | Out-Null # Unchecked Remove-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'enforceFirewall'
hostnames
REG_MULTI_SZComputer- Enabled value
- Depends on the option value
- Element
- Hostnames (optional):
- Value type
- REG_MULTI_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload] ; Value names and types follow the ADMX. Replace <enter value> below with your own data ; hex(2) and hex(7) data must be written as hexadecimal (UTF-16LE) "hostnames"=hex(7):<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "hostnames" /t REG_MULTI_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data 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 '<enter value>' -Force | Out-Null
subdomainSupportedHostnames
REG_MULTI_SZComputer- Enabled value
- Depends on the option value
- Element
- Subdomain Supported Hostnames (optional):
- Value type
- REG_MULTI_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload] ; Value names and types follow the ADMX. Replace <enter value> below with your own data ; hex(2) and hex(7) data must be written as hexadecimal (UTF-16LE) "subdomainSupportedHostnames"=hex(7):<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "subdomainSupportedHostnames" /t REG_MULTI_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data 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 '<enter value>' -Force | Out-Null
ipRanges
REG_MULTI_SZComputer- Enabled value
- Depends on the option value
- Element
- IP Ranges (optional):
- Value type
- REG_MULTI_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload] ; Value names and types follow the ADMX. Replace <enter value> below with your own data ; hex(2) and hex(7) data must be written as hexadecimal (UTF-16LE) "ipRanges"=hex(7):<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload" /v "ipRanges" /t REG_MULTI_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data 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 '<enter value>' -Force | Out-Null