Open in the explorer

Cloud Policy Details

Détails concernant la stratégie cloud

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Tenant Restrictions FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Restrictions de client
Supported on
At least Windows 10 Version 1909 FR: Au moins Windows 10 version 1909
ADMX file
TenantRestrictions.admx
Internal name
TenantRestrictions/trv2_payload

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

French text from Windows 11 26H2

Ce paramètre active et configure la fonctionnalité de restrictions de locataire basées sur les appareils pour Microsoft Azure Active Directory.

Lorsque vous activez ce paramètre, les applications conformes ne pourront pas accéder aux locataires non autorisés, conformément à une stratégie définie dans votre locataire Microsoft Azure Active Directory.

Remarque : La création d'une stratégie dans votre locataire d'accueil est requise et des mesures de sécurité supplémentaires pour les appareils gérés sont recommandées pour une meilleure protection. Reportez-vous aux Restrictions du locataire Microsoft Azure Active Directory pour plus de détails.

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

Avant d'activer la protection par pare-feu, assurez-vous qu'une stratégie Contrôle des applications pour entreprise qui balise correctement les applications a été appliquée aux appareils cibles. L’activation de la protection par pare-feu sans stratégie Contrôle des applications pour entreprise correspondante empêchera toutes les applications d’atteindre les points de terminaison Microsoft. Ce paramètre de pare-feu n'est pas pris en charge sur toutes les versions de Windows. Consultez le lien suivant pour plus d'informations.
Pour plus de détails sur la configuration de WDAC avec des restrictions de locataire, consultez https://go.microsoft.com/fwlink/?linkid=2155230

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: TenantRestrictions/trv2_payload
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Cloud ID (optional)
Set-ItemProperty -Path $k -Name 'cloudid' -Value '<value>' -Type String
# Azure AD Directory ID
Set-ItemProperty -Path $k -Name 'tenantid' -Value '<value>' -Type String
# Policy GUID
Set-ItemProperty -Path $k -Name 'policyid' -Value '<value>' -Type String
# Enable firewall protection of Microsoft endpoints
# unchecked: value deleted
Set-ItemProperty -Path $k -Name 'enforceFirewall' -Value 1 -Type DWord
# Hostnames (optional)
Set-ItemProperty -Path $k -Name 'hostnames' -Value @('<value1>', '<value2>') -Type MultiString
# Subdomain Supported Hostnames (optional)
Set-ItemProperty -Path $k -Name 'subdomainSupportedHostnames' -Value @('<value1>', '<value2>') -Type MultiString
# IP Ranges (optional)
Set-ItemProperty -Path $k -Name 'ipRanges' -Value @('<value1>', '<value2>') -Type MultiString

Disable

# Disable: TenantRestrictions/trv2_payload
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": TenantRestrictions/trv2_payload
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\TenantRestrictions\Payload'
Remove-ItemProperty -Path $k -Name 'cloudid' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'tenantid' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'policyid' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'enforceFirewall' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'hostnames' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'subdomainSupportedHostnames' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ipRanges' -ErrorAction SilentlyContinue

Options (7)

LabelControlRegistry valueREG typeConstraints / details
Cloud ID (optional):ID de cloud (facultatif) :PayloadCloudIdText boxtextcloudidREG_SZ
Azure AD Directory ID:ID Azure Active Directory :PayloadTenantIdText boxtexttenantidREG_SZ
Required
Policy GUID:GUID de la stratégie :PayloadPolicyIdText boxtextpolicyidREG_SZ
Required
Enable firewall protection of Microsoft endpointsActiver la protection pare-feu des points de terminaison MicrosoftEnforceFirewallCheck boxbooleanenforceFirewallREG_DWORD
Checked: REG_DWORD = 1
Unchecked: Deletes the value
Hostnames (optional):Noms d’hôte (facultatif) :PayloadHostnamesIdMultiline text boxmultiTexthostnamesREG_MULTI_SZ
Subdomain Supported Hostnames (optional):Noms d’hôtes pris en charge par le sous-domaine (facultatif) :PayloadSubdomainSupportedHostnamesIdMultiline text boxmultiTextsubdomainSupportedHostnamesREG_MULTI_SZ
IP Ranges (optional):Plages d’adresses IP (facultatif) :PayloadIpRangesIdMultiline text boxmultiTextipRangesREG_MULTI_SZ

Availability

Windows 10

✓ 22H2✓ 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

— 2025— 2022— 2016