Use Primary Work Profile as default to open external links
Explanation
This policy controls whether Microsoft Edge uses the Primary Work Profile as the default profile when opening external links.
1. On Windows, the Primary Work Profile refers to the profile signed in with the Entra ID account used to enroll the device.
2. On macOS and Linux, the Primary Work Profile is the only profile signed in with an Entra ID account. If multiple profiles are signed in with Entra ID accounts, the Primary Work Profile setting doesn't apply.
Policy behavior:
1. If enabled or not configured, Microsoft Edge uses the Primary Work Profile as the default for opening external links.
2. If disabled, the last used profile becomes the default for opening external links.
Note: This policy doesn't override the following scenarios:
1. If the EdgeDefaultProfileEnabled policy is set, it takes precedence over this policy.
2. External links opened from Outlook or Microsoft Teams may be configured to launch in a specific profile, which can override the Primary Work Profile setting.
3. If the user sets a preference for "Default profile for external links" in Profile preferences, that setting takes effect.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge\RecommendedHKEY_CURRENT_USER\Software\Policies\Microsoft\Edge\Recommended- Value name
EdgeOpenExternalLinksWithPrimaryWorkProfileEnabled
| 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.
Computer (HKLM)
Enable
# Enable: msedge/EdgeOpenExternalLinksWithPrimaryWorkProfileEnabled_recommended
$k = 'HKLM:\Software\Policies\Microsoft\Edge\Recommended'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EdgeOpenExternalLinksWithPrimaryWorkProfileEnabled' -Value 1 -Type DWordDisable
# Disable: msedge/EdgeOpenExternalLinksWithPrimaryWorkProfileEnabled_recommended
$k = 'HKLM:\Software\Policies\Microsoft\Edge\Recommended'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EdgeOpenExternalLinksWithPrimaryWorkProfileEnabled' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": msedge/EdgeOpenExternalLinksWithPrimaryWorkProfileEnabled_recommended
$k = 'HKLM:\Software\Policies\Microsoft\Edge\Recommended'
Remove-ItemProperty -Path $k -Name 'EdgeOpenExternalLinksWithPrimaryWorkProfileEnabled' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Application
Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.