Registry data refreshed from vendors: Last vendor change detected: 5 Dec 2026Next refresh: 1st of the monthApp v1.4.0 (5 Dec 2026): Cleanup or tattoo: see what stays behind after a GPO is removed. Release notes
Windows (ADMX) · TenantRestrictions.admx

TenantRestrictions.admx: 1 policies

Generated from Microsoft Windows Server 2025 Datacenter build 26100 in-box templates + Windows 11 ADMX package (download id 108394) on 2026-12-05. Titles, explanations and "Supported on" text are Microsoft's own, from the en-US ADML file.

Cloud Policy Details

Per machine Windows 11Windows Server 2025Windows Server 2022Windows Server 2019Windows Server 2016

Supported on: At least Windows 10 Version 1909

When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works

Registry keyHKLM\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload
OptionValueTypeAllowed values
Cloud ID (optional):cloudidREG_SZText
Azure AD Directory ID:tenantidREG_SZText
Policy GUID:policyidREG_SZText
Enable firewall protection of Microsoft endpointsenforceFirewallREG_DWORDChecked: 1 (REG_DWORD); unchecked: value deleted
Hostnames (optional):hostnamesREG_MULTI_SZText
Subdomain Supported Hostnames (optional):subdomainSupportedHostnamesREG_MULTI_SZText
IP Ranges (optional):ipRangesREG_MULTI_SZText
What it does (vendor explanation)

This setting enables and configures the device-based tenant restrictions feature for Azure Active Directory.

When you enable this setting, compliant applications will be prevented from accessing disallowed tenants, according to a policy set in your Azure AD tenant.

Note: Creation of a policy in your home tenant is required, and additional security measures for managed devices are recommended for best protection. Refer to Azure AD Tenant Restrictions for more details.

https://go.microsoft.com/fwlink/?linkid=2148762

Before enabling firewall protection, ensure that an App Control for Business policy that correctly tags applications has been applied to the target devices. Enabling firewall protection without a corresponding App Control for Business policy will prevent all applications from reaching Microsoft endpoints. This firewall setting is not supported on all versions of Windows - see the following link for more information. For details about setting up WDAC with tenant restrictions, see https://go.microsoft.com/fwlink/?linkid=2155230

Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Tenant Restrictions > Cloud Policy Details

PowerShell equivalent (generated from the template)
# Cloud ID (optional):
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'cloudid' -Value <value> -PropertyType String -Force
# Azure AD Directory ID:
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'tenantid' -Value <value> -PropertyType String -Force
# Policy GUID:
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'policyid' -Value <value> -PropertyType String -Force
# Enable firewall protection of Microsoft endpoints
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload' -Name 'enforceFirewall' -Value <value> -PropertyType DWord -Force

Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".

ADMX: TenantRestrictions.admx · policy name trv2_payload