Skip to content

Instantly share code, notes, and snippets.

@angelwingss
Forked from ave9858/EdgeUninstallGuide.md
Created August 26, 2025 17:06
Show Gist options
  • Save angelwingss/d2272f3e4651769e17bc3b843f2b2ed9 to your computer and use it in GitHub Desktop.
Save angelwingss/d2272f3e4651769e17bc3b843f2b2ed9 to your computer and use it in GitHub Desktop.

Revisions

  1. @ave9858 ave9858 revised this gist Aug 23, 2025. 1 changed file with 13 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion UninstallEdge.ps1
    Original file line number Diff line number Diff line change
    @@ -11,17 +11,29 @@ if ($null -eq $uninstallRegKey) {
    Write-Error "Edge is not installed!"
    }
    $uninstallString = $uninstallRegKey.GetValue('UninstallString') + ' --force-uninstall'
    $tempPath = "$env:SystemRoot\SystemTemp"
    if (-not (Test-Path -Path $tempPath) ) {
    $tempPath = New-Item "$env:SystemRoot\Temp\$([Guid]::NewGuid().Guid)" -ItemType Directory
    }
    $fakeDllhostPath = "$tempPath\dllhost.exe"

    $edgeClient = $microsoft.OpenSubKey('EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}', $true)
    if ($null -ne $edgeClient.GetValue('experiment_control_labels')) {
    $edgeClient.DeleteValue('experiment_control_labels')
    }

    $microsoft.CreateSubKey('EdgeUpdateDev').SetValue('AllowUninstall', '')

    # Don't you have anything better to do?
    Copy-Item "$env:SystemRoot\System32\cmd.exe" -Destination $fakeDllhostPath

    [void](New-Item $edgeUWP -ItemType Directory -ErrorVariable fail -ErrorAction SilentlyContinue)
    [void](New-Item "$edgeUWP\MicrosoftEdge.exe" -ErrorAction Continue)
    Start-Process cmd.exe "/c $uninstallString" -WindowStyle Hidden -Wait
    Start-Process $fakeDllhostPath "/c $uninstallString" -WindowStyle Hidden -Wait
    [void](Remove-Item "$edgeUWP\MicrosoftEdge.exe" -ErrorAction Continue)

    [void](Remove-Item $fakeDllhostPath -ErrorAction Continue)

    if (-not $fail) {
    [void](Remove-Item "$edgeUWP")
    }
  2. @ave9858 ave9858 revised this gist Dec 6, 2024. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions UninstallEdge.ps1
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,9 @@ $microsoft = [Microsoft.Win32.RegistryKey]::OpenBaseKey([Microsoft.Win32.Registr
    OpenSubKey('SOFTWARE\Microsoft', $true)
    $edgeUWP = "$env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe"
    $uninstallRegKey = $microsoft.OpenSubKey('Windows\CurrentVersion\Uninstall\Microsoft Edge')
    if ($null -eq $uninstallRegKey) {
    Write-Error "Edge is not installed!"
    }
    $uninstallString = $uninstallRegKey.GetValue('UninstallString') + ' --force-uninstall'

    $edgeClient = $microsoft.OpenSubKey('EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}', $true)
  3. @ave9858 ave9858 renamed this gist Nov 28, 2024. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @ave9858 ave9858 revised this gist Nov 28, 2024. 1 changed file with 13 additions and 0 deletions.
    13 changes: 13 additions & 0 deletions UninstallEdgeGuide.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    # Uninstall Microsoft Edge
    > [!IMPORTANT]
    Working on the latest supported Windows versions. Run Windows Update before following this guide.


    **1. Open Powershell > `RUN AS ADMIN`**

    **2. Paste in `irm https://gist.github.com/ave9858/c3451d9f452389ac7607c99d45edecc6/raw/UninstallEdge.ps1 | iex` and press enter**

    **3. Microsoft Edge will be completely uninstalled.**

    > [!NOTE]
    The Microsoft Edge Update service might remain, this is normal as it is required for updating WebView2.
  5. @ave9858 ave9858 revised this gist May 23, 2024. 2 changed files with 3 additions and 23 deletions.
    23 changes: 0 additions & 23 deletions Uninstall Edge.md
    Original file line number Diff line number Diff line change
    @@ -1,23 +0,0 @@
    ## Edge Chromium

    Note: If your system region is part of the EEA the option to uninstall Edge normally is rolling out in the latest updates for Windows and Edge. With some registry edits, you can change the region after install.

    `HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge`, remove NoRemove.

    `HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}`, delete `experiment_control_labels` if it exists.

    Create `HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdateDev` and add the `AllowUninstall` value. This replaces the experiment_control_labels blocker on later versions of Edge.

    Run uninstall in Settings or Control Panel.

    If both WebView2 and Edge Chromium are uninstalled, Microsoft Edge Update will uninstall itself.

    Edge Chromium can be reinstalled from https://www.microsoft.com/en-us/edge/download.

    ## EdgeUWP

    EdgeUWP is removed in latest patch of Windows

    ~~Delete `HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\Microsoft.MicrosoftEdge_x.x.x.x_neutral__8wekyb3d8bbwe` (The version will vary depending on your Windows version). This will ensure EdgeUWP is not installed on new accounts.~~

    ~~To remove EdgeUWP on existing accounts, create a key under EndOfLife named the SID of the account that has EdgeUWP, and create a key under that named Microsoft.MicrosoftEdge_8wekyb3d8bbwe. After that, you can use Remove-AppxPackage in powershell to remove. Remove the Microsoft.MicrosoftEdge_8wekyb3d8bbwe key after (**THIS STEP IS IMPORTANT, WINDOWS UPDATE WILL ERROR IF YOU DON'T!**).~~
    3 changes: 3 additions & 0 deletions UninstallEdge.ps1
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    # SPDX-FileCopyrightText: Copyright (c) 2023 ave9858 <[email protected]>
    # SPDX-License-Identifier: CC0-1.0

    $ErrorActionPreference = "Stop"
    $regView = [Microsoft.Win32.RegistryView]::Registry32
    $microsoft = [Microsoft.Win32.RegistryKey]::OpenBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine, $regView).
  6. @ave9858 ave9858 revised this gist Mar 10, 2024. 1 changed file with 11 additions and 4 deletions.
    15 changes: 11 additions & 4 deletions UninstallEdge.ps1
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,23 @@
    $ErrorActionPreference = "Stop"
    $regView = [Microsoft.Win32.RegistryView]::Registry32
    $microsoft = [Microsoft.Win32.RegistryKey]::OpenBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine, $regView).
    OpenSubKey('SOFTWARE\Microsoft', $true)
    $edgeUWP = "$env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe"
    $uninstallRegKey = $microsoft.OpenSubKey('Windows\CurrentVersion\Uninstall\Microsoft Edge')
    $uninstallString = $uninstallRegKey.GetValue('UninstallString') + ' --force-uninstall'

    $edgeClient = $microsoft.OpenSubKey('EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}', $true)
    if ($null -ne $edgeClient.GetValue('experiment_control_labels')) {
    $edgeClient.DeleteValue('experiment_control_labels')
    }

    $microsoft.CreateSubKey('EdgeUpdateDev').SetValue('AllowUninstall', '')

    $uninstallRegKey = $microsoft.OpenSubKey('Windows\CurrentVersion\Uninstall\Microsoft Edge')
    $uninstallString = $uninstallRegKey.GetValue('UninstallString') + ' --force-uninstall'
    [void](New-Item $edgeUWP -ItemType Directory -ErrorVariable fail -ErrorAction SilentlyContinue)
    [void](New-Item "$edgeUWP\MicrosoftEdge.exe" -ErrorAction Continue)
    Start-Process cmd.exe "/c $uninstallString" -WindowStyle Hidden -Wait
    [void](Remove-Item "$edgeUWP\MicrosoftEdge.exe" -ErrorAction Continue)

    if (-not $fail) {
    [void](Remove-Item "$edgeUWP")
    }

    Write-Output "Edge should now be uninstalled!"
  7. @ave9858 ave9858 revised this gist Jan 25, 2024. 2 changed files with 5 additions and 5 deletions.
    8 changes: 4 additions & 4 deletions Uninstall Edge.md
    Original file line number Diff line number Diff line change
    @@ -6,18 +6,18 @@ Note: If your system region is part of the EEA the option to uninstall Edge norm

    `HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}`, delete `experiment_control_labels` if it exists.

    Create `HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdateDev` and add the `AllowUninstall` value. This replaces the experiment_control_labels blocker on later versions of Edge Update.
    Create `HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdateDev` and add the `AllowUninstall` value. This replaces the experiment_control_labels blocker on later versions of Edge.

    Run uninstall in Settings or Control Panel.

    If both WebView2 and Edge Chromium are uninstalled, Microsoft Edge Update will uninstall itself.

    Edge Chromium can be reinstalled from https://www.microsoft.com/en-us/edge/download.

    ## EdgeUWP

    EdgeUWP has been removed in latest patch of Windows
    EdgeUWP is removed in latest patch of Windows

    ~~Delete `HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\Microsoft.MicrosoftEdge_x.x.x.x_neutral__8wekyb3d8bbwe` (The version will vary depending on your Windows version). This will ensure EdgeUWP is not installed on new accounts.~~

    ~~To remove EdgeUWP on existing accounts, create a key under EndOfLife named the SID of the account that has EdgeUWP, and create a key under that named Microsoft.MicrosoftEdge_8wekyb3d8bbwe. After that, you can use Remove-AppxPackage in powershell to remove. Remove the Microsoft.MicrosoftEdge_8wekyb3d8bbwe key after (**THIS STEP IS IMPORTANT, WINDOWS UPDATE WILL ERROR IF YOU DON'T!**).~~

    A repair install or upgrade will restore Edge. Edge Chromium can also be reinstalled using the installer. (https://www.microsoft.com/en-us/edge/download)
    2 changes: 1 addition & 1 deletion UninstallEdge.ps1
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,6 @@ $microsoft.CreateSubKey('EdgeUpdateDev').SetValue('AllowUninstall', '')

    $uninstallRegKey = $microsoft.OpenSubKey('Windows\CurrentVersion\Uninstall\Microsoft Edge')
    $uninstallString = $uninstallRegKey.GetValue('UninstallString') + ' --force-uninstall'
    Start-Process cmd.exe "/c $uninstallString" -WindowStyle Hidden
    Start-Process cmd.exe "/c $uninstallString" -WindowStyle Hidden -Wait

    Write-Output "Edge should now be uninstalled!"
  8. @ave9858 ave9858 revised this gist Dec 13, 2023. 2 changed files with 8 additions and 16 deletions.
    11 changes: 8 additions & 3 deletions Uninstall Edge.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,7 @@
    ## Edge Chromium

    Note: If your system region is part of the EEA the option to uninstall Edge normally is rolling out in the latest updates for Windows and Edge. With some registry edits, you can change the region after install.

    `HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge`, remove NoRemove.

    `HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}`, delete `experiment_control_labels` if it exists.
    @@ -11,8 +14,10 @@ If both WebView2 and Edge Chromium are uninstalled, Microsoft Edge Update will u

    ## EdgeUWP

    Delete `HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\Microsoft.MicrosoftEdge_x.x.x.x_neutral__8wekyb3d8bbwe` (The version will vary depending on your Windows version). This will ensure EdgeUWP is not installed on new accounts.
    EdgeUWP has been removed in latest patch of Windows

    ~~Delete `HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\Microsoft.MicrosoftEdge_x.x.x.x_neutral__8wekyb3d8bbwe` (The version will vary depending on your Windows version). This will ensure EdgeUWP is not installed on new accounts.~~

    To remove EdgeUWP on existing accounts, create a key under EndOfLife named the SID of the account that has EdgeUWP, and create a key under that named Microsoft.MicrosoftEdge_8wekyb3d8bbwe. After that, you can use Remove-AppxPackage in powershell to remove. Remove the Microsoft.MicrosoftEdge_8wekyb3d8bbwe key after (**THIS STEP IS IMPORTANT, WINDOWS UPDATE WILL ERROR IF YOU DON'T!**).
    ~~To remove EdgeUWP on existing accounts, create a key under EndOfLife named the SID of the account that has EdgeUWP, and create a key under that named Microsoft.MicrosoftEdge_8wekyb3d8bbwe. After that, you can use Remove-AppxPackage in powershell to remove. Remove the Microsoft.MicrosoftEdge_8wekyb3d8bbwe key after (**THIS STEP IS IMPORTANT, WINDOWS UPDATE WILL ERROR IF YOU DON'T!**).~~

    A repair install or upgrade will restore both Edge Chromium and EdgeUWP. Edge Chromium can also be reinstalled using the installer. (https://www.microsoft.com/en-us/edge/download)
    A repair install or upgrade will restore Edge. Edge Chromium can also be reinstalled using the installer. (https://www.microsoft.com/en-us/edge/download)
    13 changes: 0 additions & 13 deletions UninstallEdge.ps1
    Original file line number Diff line number Diff line change
    @@ -13,17 +13,4 @@ $uninstallRegKey = $microsoft.OpenSubKey('Windows\CurrentVersion\Uninstall\Micro
    $uninstallString = $uninstallRegKey.GetValue('UninstallString') + ' --force-uninstall'
    Start-Process cmd.exe "/c $uninstallString" -WindowStyle Hidden

    $appxStore = '\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore'
    $pattern = "HKLM:$appxStore\InboxApplications\Microsoft.MicrosoftEdge_*_neutral__8wekyb3d8bbwe"
    $key = (Get-Item -Path $pattern).PSChildName
    reg delete "HKLM$appxStore\InboxApplications\$key" /f

    $SID = (New-Object System.Security.Principal.NTAccount($env:USERNAME)).Translate([Security.Principal.SecurityIdentifier]).Value

    New-Item -Path "HKLM:$appxStore\EndOfLife\$SID\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" -Force

    Get-AppxPackage -Name Microsoft.MicrosoftEdge | Remove-AppxPackage

    Remove-Item -Path "HKLM:$appxStore\EndOfLife\$SID\Microsoft.MicrosoftEdge_8wekyb3d8bbwe"

    Write-Output "Edge should now be uninstalled!"
  9. @ave9858 ave9858 revised this gist Jun 8, 2023. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions UninstallEdge.ps1
    Original file line number Diff line number Diff line change
    @@ -25,3 +25,5 @@ New-Item -Path "HKLM:$appxStore\EndOfLife\$SID\Microsoft.MicrosoftEdge_8wekyb3d8
    Get-AppxPackage -Name Microsoft.MicrosoftEdge | Remove-AppxPackage

    Remove-Item -Path "HKLM:$appxStore\EndOfLife\$SID\Microsoft.MicrosoftEdge_8wekyb3d8bbwe"

    Write-Output "Edge should now be uninstalled!"
  10. @ave9858 ave9858 revised this gist Mar 29, 2023. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions UninstallEdge.ps1
    Original file line number Diff line number Diff line change
    @@ -2,20 +2,18 @@ $regView = [Microsoft.Win32.RegistryView]::Registry32
    $microsoft = [Microsoft.Win32.RegistryKey]::OpenBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine, $regView).
    OpenSubKey('SOFTWARE\Microsoft', $true)

    $uninstallRegKey = $microsoft.OpenSubKey('Windows\CurrentVersion\Uninstall\Microsoft Edge', $true)
    $uninstallRegKey.DeleteValue('NoRemove')

    $edgeClient = $microsoft.OpenSubKey('EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}', $true)
    if ($null -ne $edgeClient.GetValue('experiment_control_labels')) {
    $edgeClient.DeleteValue('experiment_control_labels')
    }

    $microsoft.CreateSubKey('EdgeUpdateDev').SetValue('AllowUninstall', '')

    $uninstallRegKey = $microsoft.OpenSubKey('Windows\CurrentVersion\Uninstall\Microsoft Edge')
    $uninstallString = $uninstallRegKey.GetValue('UninstallString') + ' --force-uninstall'
    Start-Process cmd.exe "/c $uninstallString" -WindowStyle Hidden

    $appxStore = "\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore"
    $appxStore = '\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore'
    $pattern = "HKLM:$appxStore\InboxApplications\Microsoft.MicrosoftEdge_*_neutral__8wekyb3d8bbwe"
    $key = (Get-Item -Path $pattern).PSChildName
    reg delete "HKLM$appxStore\InboxApplications\$key" /f
  11. @ave9858 ave9858 revised this gist Mar 29, 2023. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions UninstallEdge.ps1
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    $regView = [Microsoft.Win32.RegistryView]::Registry32

    $microsoft = [Microsoft.Win32.RegistryKey]::OpenBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine, $regView).OpenSubKey('SOFTWARE\Microsoft', $true)
    $microsoft = [Microsoft.Win32.RegistryKey]::OpenBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine, $regView).
    OpenSubKey('SOFTWARE\Microsoft', $true)

    $uninstallRegKey = $microsoft.OpenSubKey('Windows\CurrentVersion\Uninstall\Microsoft Edge', $true)
    $uninstallRegKey.DeleteValue('NoRemove')
    @@ -10,20 +10,20 @@ if ($null -ne $edgeClient.GetValue('experiment_control_labels')) {
    $edgeClient.DeleteValue('experiment_control_labels')
    }

    $edgeUpdateDevRegKey = $microsoft.CreateSubKey('EdgeUpdateDev')
    $edgeUpdateDevRegKey.SetValue('AllowUninstall', '')
    $microsoft.CreateSubKey('EdgeUpdateDev').SetValue('AllowUninstall', '')

    $uninstallString = $uninstallRegKey.GetValue('UninstallString') + ' --force-uninstall'
    Start-Process cmd.exe "/c $uninstallString" -WindowStyle Hidden

    $pattern = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\Microsoft.MicrosoftEdge_*_neutral__8wekyb3d8bbwe'
    $appxStore = "\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore"
    $pattern = "HKLM:$appxStore\InboxApplications\Microsoft.MicrosoftEdge_*_neutral__8wekyb3d8bbwe"
    $key = (Get-Item -Path $pattern).PSChildName
    reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\$key" /f
    reg delete "HKLM$appxStore\InboxApplications\$key" /f

    $SID = (New-Object System.Security.Principal.NTAccount($env:USERNAME)).Translate([System.Security.Principal.SecurityIdentifier]).Value
    $SID = (New-Object System.Security.Principal.NTAccount($env:USERNAME)).Translate([Security.Principal.SecurityIdentifier]).Value

    New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\EndOfLife\$SID\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" -Force
    New-Item -Path "HKLM:$appxStore\EndOfLife\$SID\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" -Force

    Get-AppxPackage -Name Microsoft.MicrosoftEdge | Remove-AppxPackage

    Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\EndOfLife\$SID\Microsoft.MicrosoftEdge_8wekyb3d8bbwe"
    Remove-Item -Path "HKLM:$appxStore\EndOfLife\$SID\Microsoft.MicrosoftEdge_8wekyb3d8bbwe"
  12. @ave9858 ave9858 revised this gist Mar 29, 2023. 1 changed file with 29 additions and 0 deletions.
    29 changes: 29 additions & 0 deletions UninstallEdge.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    $regView = [Microsoft.Win32.RegistryView]::Registry32

    $microsoft = [Microsoft.Win32.RegistryKey]::OpenBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine, $regView).OpenSubKey('SOFTWARE\Microsoft', $true)

    $uninstallRegKey = $microsoft.OpenSubKey('Windows\CurrentVersion\Uninstall\Microsoft Edge', $true)
    $uninstallRegKey.DeleteValue('NoRemove')

    $edgeClient = $microsoft.OpenSubKey('EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}', $true)
    if ($null -ne $edgeClient.GetValue('experiment_control_labels')) {
    $edgeClient.DeleteValue('experiment_control_labels')
    }

    $edgeUpdateDevRegKey = $microsoft.CreateSubKey('EdgeUpdateDev')
    $edgeUpdateDevRegKey.SetValue('AllowUninstall', '')

    $uninstallString = $uninstallRegKey.GetValue('UninstallString') + ' --force-uninstall'
    Start-Process cmd.exe "/c $uninstallString" -WindowStyle Hidden

    $pattern = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\Microsoft.MicrosoftEdge_*_neutral__8wekyb3d8bbwe'
    $key = (Get-Item -Path $pattern).PSChildName
    reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\$key" /f

    $SID = (New-Object System.Security.Principal.NTAccount($env:USERNAME)).Translate([System.Security.Principal.SecurityIdentifier]).Value

    New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\EndOfLife\$SID\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" -Force

    Get-AppxPackage -Name Microsoft.MicrosoftEdge | Remove-AppxPackage

    Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\EndOfLife\$SID\Microsoft.MicrosoftEdge_8wekyb3d8bbwe"
  13. @ave9858 ave9858 revised this gist Mar 22, 2023. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion Uninstall Edge.md
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,8 @@

    `HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}`, delete `experiment_control_labels` if it exists.

    Create `HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdateDev` and add the `AllowUninstall` value. This replaces the experiment_control_labels blocker on later versions of Edge Update.

    Run uninstall in Settings or Control Panel.

    If both WebView2 and Edge Chromium are uninstalled, Microsoft Edge Update will uninstall itself.
    @@ -11,6 +13,6 @@ If both WebView2 and Edge Chromium are uninstalled, Microsoft Edge Update will u

    Delete `HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\Microsoft.MicrosoftEdge_x.x.x.x_neutral__8wekyb3d8bbwe` (The version will vary depending on your Windows version). This will ensure EdgeUWP is not installed on new accounts.

    To remove EdgeUWP on existing accounts, create a key under EndOfLife named the SID of the account that has EdgeUWP, and create a key under that named Microsoft.MicrosoftEdge_8wekyb3d8bbwe. After that, you can use Remove-AppxPackage in powershell to remove. Remove the Microsoft.MicrosoftEdge_8wekyb3d8bbwe key after.
    To remove EdgeUWP on existing accounts, create a key under EndOfLife named the SID of the account that has EdgeUWP, and create a key under that named Microsoft.MicrosoftEdge_8wekyb3d8bbwe. After that, you can use Remove-AppxPackage in powershell to remove. Remove the Microsoft.MicrosoftEdge_8wekyb3d8bbwe key after (**THIS STEP IS IMPORTANT, WINDOWS UPDATE WILL ERROR IF YOU DON'T!**).

    A repair install or upgrade will restore both Edge Chromium and EdgeUWP. Edge Chromium can also be reinstalled using the installer. (https://www.microsoft.com/en-us/edge/download)
  14. @ave9858 ave9858 revised this gist Mar 15, 2023. No changes.
  15. @ave9858 ave9858 revised this gist Jan 3, 2023. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Uninstall Edge.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,8 @@

    Run uninstall in Settings or Control Panel.

    If both WebView2 and Edge Chromium are uninstalled, Microsoft Edge Update will uninstall itself.

    ## EdgeUWP

    Delete `HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\Microsoft.MicrosoftEdge_x.x.x.x_neutral__8wekyb3d8bbwe` (The version will vary depending on your Windows version). This will ensure EdgeUWP is not installed on new accounts.
  16. @ave9858 ave9858 created this gist Jan 1, 2023.
    14 changes: 14 additions & 0 deletions Uninstall Edge.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    ## Edge Chromium
    `HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge`, remove NoRemove.

    `HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\ClientState\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}`, delete `experiment_control_labels` if it exists.

    Run uninstall in Settings or Control Panel.

    ## EdgeUWP

    Delete `HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\Microsoft.MicrosoftEdge_x.x.x.x_neutral__8wekyb3d8bbwe` (The version will vary depending on your Windows version). This will ensure EdgeUWP is not installed on new accounts.

    To remove EdgeUWP on existing accounts, create a key under EndOfLife named the SID of the account that has EdgeUWP, and create a key under that named Microsoft.MicrosoftEdge_8wekyb3d8bbwe. After that, you can use Remove-AppxPackage in powershell to remove. Remove the Microsoft.MicrosoftEdge_8wekyb3d8bbwe key after.

    A repair install or upgrade will restore both Edge Chromium and EdgeUWP. Edge Chromium can also be reinstalled using the installer. (https://www.microsoft.com/en-us/edge/download)