/

How to Enable or Disable Bypass Enhanced Security Mode in Microsoft Edge

by Richelle Arevalo, IT Technical Writer
How to Enable or Disable Bypass Enhanced Security Mode in Microsoft Edge blog banner image
How to Enable or Disable Bypass Enhanced Security Mode in Microsoft Edge blog banner image

Try our #1 rated endpoint management platform on G2

NinjaOne dashboard screenshot

Automate the Hardest Parts of IT

Key Points

  • Set the EnhanceSecurityModeAllowUserBypass policy to 0 to block users from bypassing Enhanced Security Mode, or to 1 to allow bypass, which is the default.
  • Use Group Policy for domain-wide enforcement, and use Registry Editor, Command Prompt, or PowerShell for single devices or scripted deployments.
  • Run every method as an administrator on Windows 10 or 11 with Microsoft Edge version 122 or later.
  • Restart Microsoft Edge, or run gpupdate /force for Group Policy, then confirm the policy at edge://policy.
  • Remember that this policy only controls site-level bypass, while the separate EnhanceSecurityMode policy controls whether ESM is enabled and at which level.

To stop users from bypassing Enhanced Security Mode (ESM) in Microsoft Edge, set the EnhanceSecurityModeAllowUserBypass policy to 0 with Registry Editor, Command Prompt, PowerShell, or Group Policy. Set it to 1, or leave it unconfigured, to let users bypass ESM for individual sites; this, is the default behavior.

This guide will show you how to configure Microsoft Edge’s “Enhance your security on the web” feature to suit your browsing and security needs.

Recommended deployment strategies:

Click to Choose a Method

Best for Individual Users

Best for Enterprises

Method 1: Enable or disable via Registry Editor✓
Method 2: Enable or disable via Command Prompt✓
Method 3: Enable or disable via PowerShell✓✓
Method 4: Enable or disable via Group Policy✓

Pull up the video and take in all four methods — How to Enable or Disable Bypass Enhanced Security Mode in Microsoft Edge.

How to manage Microsoft Edge enhanced security settings with bypass policy

Before you begin, note that the following methods apply to Windows 10 and 11 systems and require Microsoft Edge version 122 or later.

Windows 10 support note: Windows 10 version 22H2 reached end of support on October 14, 2025. Eligible devices enrolled in Extended Security Updates (ESU) can continue receiving security updates, while LTSC editions follow separate support timelines.

Method 1: Enable or disable via Registry Editor

This method doesn’t require command-line knowledge and is easier to understand due to its visual interface.

Use Cases: Use this if you’re directly applying the policy on individual systems without Group Policy.

Prerequisites: You must be signed in as an administrator.

Warning: Editing the registry can cause system issues. Create a backup before proceeding.

Steps:

  1. Press Win + R to open the Run dialog box.
  2. Type regedit and click Enter to launch the Registry Editor.
  3. Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge
    •  If the Edge key doesn’t exist:
      1. Right-click Microsoft.
      2. Select New > Key.
      3. Name it Edge.
  4. Right-click on the right pane of the Edge key.
  5. Select New > DWORD (32-bit) Value.
  6. Name it EnhanceSecurityModeAllowUserBypass (Read #1 in Things to look out for.)
  7. Set the value to:
    • 1 – Allow users to bypass Enhanced Security Mode (default behavior).
    • 0 – Prevent users from bypassing Enhanced Security Mode.
  8. Close the Registry Editor and restart Microsoft Edge to apply the changes. (Read #2 in Things to look out for.)

Method 2: Enable or disable via Command Prompt

For users comfortable with command-line tools, this method is fast and scriptable.

Use Cases: Use this if you need to automate changes via a batch script and apply settings across multiple machines.

Prerequisites: Must be run as an administrator.

Steps:

  1. Open Command Prompt as Administrator.
    • Search for cmd, right-click Command Prompt, then select Run as administrator, or
    • Press Win + R, type cmd, and press Ctrl + Shift + Enter to open Command Prompt as administrator.
  2. Use this command to enable user bypass:
    reg add “HKLM\SOFTWARE\Policies\Microsoft\Edge” /v EnhanceSecurityModeAllowUserBypass /t REG_DWORD /d 1 /f

    (Read #1 in Things to look out for.)

  3. Use this command to disable user bypass:
    reg add “HKLM\SOFTWARE\Policies\Microsoft\Edge” /v EnhanceSecurityModeAllowUserBypass /t REG_DWORD /d 0 /f
  4. Restart Microsoft Edge to apply the policy. (Read #2 in Things to look out for.)

Method 3: Enable or disable via PowerShell

For advanced users or IT admins managing configurations at scale, PowerShell also offers a scriptable approach suitable for provisioning and deployment tools.

Use Cases: Use this if you manage settings via automation tools like SCCM, Intune, or deployment scripts.

Prerequisites: Must be run as an administrator.

Steps:

  1. Press Win + S, search for PowerShell, right-click Windows PowerShell, then select Run as administrator. (Read #3 in Things to look out for.)
  2. Use this command to enable user bypass:
    $edgeKeyPath = “HKLM:\SOFTWARE\Policies\Microsoft\Edge”
    if (-not (Test-Path $edgeKeyPath)) {
    New-Item -Path “HKLM:\SOFTWARE\Policies\Microsoft” -Name “Edge” | Out-Null
    }New-ItemProperty -Path $edgeKeyPath -Name “EnhanceSecurityModeAllowUserBypass” -Value 1 -PropertyType DWord -Force

    (Read #1 in Things to look out for.)

  3. Use this command to disable user bypass:
    $edgeKeyPath = “HKLM:\SOFTWARE\Policies\Microsoft\Edge”
    if (-not (Test-Path $edgeKeyPath)) {
    New-Item -Path “HKLM:\SOFTWARE\Policies\Microsoft” -Name “Edge” | Out-Null
    }New-ItemProperty -Path $edgeKeyPath -Name “EnhanceSecurityModeAllowUserBypass” -Value 0 -PropertyType DWord -Force
  4. Restart Microsoft Edge to apply the changes. (Read #2 in Things to look out for.)

Method 4: Enable or disable via Group Policy

This method is advised for managing policies in enterprise environments or domain-joined systems.

Use Cases: Use this when multiple devices need centralized control and policy enforcement.

Prerequisites:

Steps:

  1. Press Win + R to open the Run dialog box.
  2. Type gpedit.msc and click Enter to launch the Group Policy Editor.
  3. Navigate to: Computer Configuration > Administrative Templates > Microsoft Edge.
  4. Find the policy: Allow users to bypass Enhanced Security Mode.
  5. Double-click it and set the policy to:
    • Enabled – Allow bypass.
    • Disabled – Prevent bypass.
  6. Click Apply, then OK.
  7. Restart Edge or run gpupdate /force in Command Prompt to apply the policy immediately. (Read #2 in Things to look out for.)

Verification

After applying the policy, confirm the browser recognizes it.

  1. Open Microsoft Edge.
  2. In the address bar, navigate to edge://policy.
  3. Confirm that the EnhanceSecurityModeAllowUserBypass policy is listed with the correct value.

If it’s missing, the policy didn’t apply.

This step ensures that the browser properly applies and recognizes the policy.

Things to look out for

Risks

Potential Consequences

Reversals

Incorrect value type or format in Registry or PowerShell.Policy silently fails or behaves unexpectedly.Delete and recreate the value using the correct type and format.
Forgetting to restart Edge or force a policy refresh.Policy changes will not take effect immediately.Restart Microsoft Edge or run gpupdate /force Group Policy.
Applying policies without administrator access.Permissions error or policy ignored.Run Registry Editor, CMD, or PowerShell as an administrator.
Missing Microsoft Edge ADMX templates in Group Policy.The target policy is not visible or configurable in GPO.Download and install the latest ADMX files from Microsoft’s Edge for Business site.

Using alternative ways to apply Edge policy changes across devices

If you manage Edge on many devices, you can run the Command Prompt or PowerShell commands from this guide as automation scripts in tools, like NinjaOne Endpoint Management®, on demand or on a schedule.

NinjaOne Browser Management also lets IT teams manage browser policies and extensions from the same platform.

Additional considerations to avoid misconfiguring Enhanced Security Mode

Here are a few key points you should know to avoid confusion or issues when enabling or disabling the bypass ESM in Microsoft Edge:

Bypass policy is not a global disable

The bypass policy doesn’t entirely disable the Enhanced Security Mode. Instead, it controls whether users can opt out of ESM protections for specific websites. The overall ESM setting remains active and applies based on the configured level (Balanced or Strict).

Disabling ESM entirely requires a separate policy

If you need to turn ESM off completely, use the separate EnhanceSecurityMode policy and set it to StandardMode (0). Balanced mode is 1, and Strict mode is 2. You can configure this setting through Group Policy, Registry, PowerShell, or Command Prompt. Optional subhead pattern: ‘Method 1: Allow or block bypass with Registry Editor’.

Machine-level policies override user settings

When policies are applied at the machine level (Group Policy and Registry), they override any user-configured settings in Edge’s UI. This ensures consistent enforcement, which is ideal for organizations requiring centralized control.

Troubleshooting common Microsoft Edge ESM policy application issues

If you’re facing issues where the policy isn’t working as expected, here are some common problems and solutions:

Policy not taking effect

If the bypass policy isn’t taking effect, double-check the registry path and confirm the value name is formatted correctly. Moreover, restart Microsoft Edge to make sure changes are applied.

Group Policy setting not applying

If the Group Policy setting isn’t applying, ensure the Microsoft Edge ADMX templates are installed and updated. Also, run gpupdate /force in Command Prompt to refresh Group Policy settings.

Policy not showing in Edge

Open Microsoft Edge and check edge://policy to confirm if the policy is loaded and whether it’s considered active. If it’s missing, the policy wasn’t applied correctly.

Secure browsing with flexible control over Microsoft Edge enhanced security

Controlling user access to bypass Enhanced Security Mode (ESM) makes maintaining consistent security standards across managed environments possible. Windows offers several methods to implement this, depending on the use case.

The Registry Editor is ideal for manual control on single systems, while Command Prompt and PowerShell are for scripted deployments. Group Policy remains the most effective option for domain-wide enforcement, allowing centralized and enforced policy management across multiple devices.

Related topics:

FAQs

Yes. Set EnhanceSecurityModeAllowUserBypass to 0 to prevent user bypass, then use EnhanceSecurityModeBypassListDomains to add approved domains. IT can manage these exceptions while keeping users from bypassing ESM themselves.

This policy doesn’t block websites. Instead, it prevents users from turning off ESM protections for individual sites. If a website has compatibility issues with ESM, some features may not work properly while those protections remain active.

If you used Group Policy, set Allow users to bypass Enhanced Security Mode to Not Configured. If you edited the registry directly, delete the EnhanceSecurityModeAllowUserBypass value. Edge allows user bypass by default, unless another management policy enforces the setting.

Yes, when applied through HKEY_LOCAL_MACHINE or Computer Configuration, as shown in this guide. These device-level settings apply across Edge profiles, including personal profiles signed in with a Microsoft account. Check edge://policy within the relevant profile to confirm the setting.

Ask IT to check whether ESM is causing the issue. If the website requires an exception, IT can add its domain to EnhanceSecurityModeBypassListDomains after testing and approval. This allows the website to run without ESM protections while user bypass remains blocked.

You might also like

Ready to simplify the hardest parts of IT?