Skip to content

iammelvink/EdgeRemover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EdgeRemover banner

A PowerShell script that correctly uninstalls or reinstalls Microsoft Edge on Windows 10 & 11.


🎉 Features

  • Remove Edge with its own uninstaller, meaning there aren't leftovers, alongside no breakage as nothing is hardcoded
  • Multiple fallback methods for uninstallation
  • Can remove Edge installed with a .msi
  • Ability to reinstall Edge and WebView2
  • Implementable in scripts with parameters

⬇️ Usage

You can use the commands below in Command Prompt to launch the script.

@powershell -NoProfile -ExecutionPolicy Bypass -Command "& ([ScriptBlock]::Create((irm https://cdn.jsdelivr.net/gh/iammelvink/EdgeRemover@main/get.ps1)))"

Uninstall Edge, remove Edge's user-data, and install Edge WebView. Recommended*

@powershell -NoProfile -ExecutionPolicy Bypass -Command "& ([ScriptBlock]::Create((irm https://cdn.jsdelivr.net/gh/iammelvink/EdgeRemover@main/get.ps1))) -UninstallEdge -RemoveEdgeData -InstallWebView -NonInteractive"

Image of the EdgeRemover UI

📜 Implementation in Scripts

Download the script and run Get-Help .\RemoveEdge.ps1 in PowerShell to see its options. You can either use the downloaded file directly with these arguments or put them into the snippet below:

iex "&{$(irm https://cdn.jsdelivr.net/gh/iammelvink/EdgeRemover@main/get.ps1)} [ARGUMENTS HERE]"
Example

This would uninstall Edge, remove Edge's user-data, and install Edge WebView:

iex "&{$(irm https://cdn.jsdelivr.net/gh/iammelvink/EdgeRemover@main/get.ps1)} -UninstallEdge -RemoveEdgeData -InstallWebView"

🫧 Clearing Edge Blocks

You can use the command below in PowerShell to clear all EdgeUpdate policies, including those that block the reinstallation and update of Edge or WebView.

iex "&{$(irm https://cdn.jsdelivr.net/gh/iammelvink/EdgeRemover@main/get.ps1)} -ClearUpdateBlocks"

❓ Troubleshooting

If Edge won't uninstall, try:

  1. Repairing Edge
  2. Making sure that Windows is up to date
  3. Making sure that Edge is up to date

✅ Additional Credits

  • Xyueta - minor bug fixes
  • ave9858 - inspired this script
  • h3r0 - notified me about the 'windir' method in the script

Credit to

@he3als

More Stuff

Check out some other stuff on Melvin K

About

A PowerShell script that uninstalls or reinstalls Microsoft Edge on Windows

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors