Prevent enterprise websites from loading non-enterprise content in Microsoft Edge and Internet Explorer
Empêcher les sites web d’entreprise de charger du contenu non entreprise dans Microsoft Edge et Internet Explorer
Explanation
This policy setting allows you to decide whether websites can load non-enterprise content in Microsoft Edge and Internet Explorer.
If you enable this setting, non-enterprise content embedded on enterprise sites are stopped from opening in Internet Explorer or Microsoft Edge outside of Microsoft Defender Application Guard.
If you disable or don't configure this setting, non-enterprise sites can open outside of the Microsoft Defender Application Guard container, directly in Internet Explorer and Microsoft Edge.
Ce paramètre de stratégie vous permet de déterminer si des sites web peuvent charger du contenu non entreprise dans Microsoft Edge et Internet Explorer.
Si vous activez ce paramètre, le contenu non entreprise incorporé à des sites d'entreprise ne peut plus s'ouvrir dans Internet Explorer ou Microsoft Edge en dehors de Microsoft Defender Application Guard.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les sites non entreprise peuvent s'ouvrir en dehors du conteneur Microsoft Defender Application Guard, directement dans Internet Explorer et Microsoft Edge.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\AppHVSI- Value name
BlockNonEnterpriseContent
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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: apphvsi/AppHVSI_BlockNonEnterpriseContentConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'BlockNonEnterpriseContent' -Value 1 -Type DWordDisable
# Disable: apphvsi/AppHVSI_BlockNonEnterpriseContentConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'BlockNonEnterpriseContent' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": apphvsi/AppHVSI_BlockNonEnterpriseContentConfig
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\AppHVSI'
Remove-ItemProperty -Path $k -Name 'BlockNonEnterpriseContent' -ErrorAction SilentlyContinue