Cloud Policy Details
Détails concernant la stratégie cloud
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
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 MultiStringDisable
# 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 SilentlyContinueOptions (7)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Cloud ID (optional):ID de cloud (facultatif) :PayloadCloudId | Text boxtext | cloudid | REG_SZ | |
| Azure AD Directory ID:ID Azure Active Directory :PayloadTenantId | Text boxtext | tenantid | REG_SZ | Required |
| Policy GUID:GUID de la stratégie :PayloadPolicyId | Text boxtext | policyid | REG_SZ | Required |
| Enable firewall protection of Microsoft endpointsActiver la protection pare-feu des points de terminaison MicrosoftEnforceFirewall | Check boxboolean | enforceFirewall | REG_DWORD | Checked: REG_DWORD = 1Unchecked: Deletes the value |
| Hostnames (optional):Noms d’hôte (facultatif) :PayloadHostnamesId | Multiline text boxmultiText | hostnames | REG_MULTI_SZ | |
| Subdomain Supported Hostnames (optional):Noms d’hôtes pris en charge par le sous-domaine (facultatif) :PayloadSubdomainSupportedHostnamesId | Multiline text boxmultiText | subdomainSupportedHostnames | REG_MULTI_SZ | |
| IP Ranges (optional):Plages d’adresses IP (facultatif) :PayloadIpRangesId | Multiline text boxmultiText | ipRanges | REG_MULTI_SZ |