Open in the explorer

Use Primary Work Profile as default to open external links

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Microsoft Edge - Default Settings (users can override) › Identity and sign-in User Configuration › Policies › Administrative Templates › Microsoft Edge - Default Settings (users can override) › Identity and sign-in
Supported on
Microsoft Edge version 138, Windows 7 or later
ADMX file
msedge.admx
Internal name
msedge/EdgeOpenExternalLinksWithPrimaryWorkProfileEnabled_recommended

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\Recommended
HKEY_CURRENT_USER\Software\Policies\Microsoft\Edge\Recommended
Value name
EdgeOpenExternalLinksWithPrimaryWorkProfileEnabled
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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 DWord

Disable

# 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 DWord

Revert to "Not configured"

# Revert to "Not configured": msedge/EdgeOpenExternalLinksWithPrimaryWorkProfileEnabled_recommended
$k = 'HKLM:\Software\Policies\Microsoft\Edge\Recommended'
Remove-ItemProperty -Path $k -Name 'EdgeOpenExternalLinksWithPrimaryWorkProfileEnabled' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Application

Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.