In this tutorial, I will explain how to uninstall Microsoft Edge using PowerShell. If you want to remove Microsoft Edge from your Windows 10 or Windows 11 system, this step-by-step guide will help you do that. I recently did this for my organization.
Uninstall Microsoft Edge Using PowerShell
Microsoft Edge is the default web browser for Windows 10 and Windows 11. While it offers a range of features and improvements over Internet Explorer, some users prefer other browsers like Google Chrome or Mozilla Firefox.
Additionally, Edge can sometimes cause system slowdowns or compatibility issues with certain applications. Uninstalling it can free up system resources and improve performance. So, PowerShell is the best option for uninstalling the Edge browser.
Before running the PowerShell script, ensure you have administrative privileges on your computer. PowerShell commands require elevated permissions to execute system-level changes.
Follow the steps to uninstall Microsoft Edge from Windows OS using PowerShell.
Step 1: Open PowerShell as Administrator
- Press
Windows + Xon your keyboard or right-click the Start button to open the Power User menu. - Select Windows PowerShell (Admin) or Windows Terminal (Admin) if you’re using Windows 11.
Step 2: Find the Microsoft Edge Package
To uninstall Microsoft Edge, you need to locate its package name. This can be done using the Get-AppxPackage command.
- In the PowerShell window, type the following command and press Enter:
Get-AppxPackage *MicrosoftEdge*- This command will list all the packages related to Microsoft Edge installed on your system. Look for the package name under the
Namefield. It should look something likeMicrosoft.MicrosoftEdge.Stable.
You can see the screenshot below for your reference.

Check out How to Set Proxy in PowerShell?
Step 3: Uninstall Microsoft Edge
Once you have identified the package name, you can proceed to uninstall it.
- In the PowerShell window, type the following command, replacing
PackageFullNamewith the actual package name you found in the previous step:
Get-AppxPackage -allusers Microsoft.MicrosoftEdge.Stable | Remove-AppxPackage- Press Enter. This command will remove Microsoft Edge from your system.
This is how to remove the Edge browser from your system using PowerShell.
Read Get Window Titles Using PowerShell
Troubleshooting Common Issues
Now, let me show you some common issues you may face here.
Issue 1: Access Denied
If you encounter an “Access Denied” error, ensure you are running PowerShell as an administrator. Right-click the Start button, select Windows PowerShell (Admin), and try the commands again.
Issue 2: Package Not Found
If the package name is not found, double-check the output of the Get-AppxPackage *MicrosoftEdge* command. Ensure you are copying the correct package name and that it matches exactly.
Issue 3: Reinstallation
If you need to reinstall Microsoft Edge for any reason, you can download it from the official Microsoft Edge website.
Automate PowerShell Scripts to Uninstall Microsoft Edge
You can also create a PowerShell script to automate the uninstallation process. Here’s an example script:
# Uninstall Microsoft Edge
$EdgePackage = Get-AppxPackage -allusers Microsoft.MicrosoftEdge.Stable
Remove-AppxPackage -Package $EdgePackage.PackageFullNameSave this script as UninstallEdge.ps1 and run it using PowerShell:
.\UninstallEdge.ps1Read Get Windows Services Using PowerShell
Prevent Edge from Reinstall Microsoft Edge
Windows updates may reinstall Microsoft Edge. To prevent this, you can use Group Policy Editor (Windows 10 Pro and Enterprise) or modify the registry (Windows 10 Home).
Using Group Policy Editor
- Press
Windows + R, typegpedit.msc, and press Enter. - Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Edge.
- Double-click Allow Microsoft Edge to pre-launch at Windows startup, when the system is idle, and each time Microsoft Edge is closed.
- Select Disabled and click OK.
Modifying the Registry
- Press
Windows + R, typeregedit, and press Enter. - Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main. - Right-click the Main key, select New > DWORD (32-bit) Value, and name it
AllowPrelaunch. - Set the value to
0.
If you do this, Windows update will not reinstall Microsoft Edge in your system.
Conclusion
In this tutorial, I explained how to uninstall Microsoft Edge using PowerShell from Windows 10 or Windows 11.
You may also like:
- Get a List of Installed Programs Using PowerShell
- How to List Local Administrators Using PowerShell?
- How to Uninstall a Program with PowerShell?
- Create a Local Admin Account Using PowerShell
- Get Default Browser Using PowerShell
Bijay Kumar is an esteemed author and the mind behind PowerShellFAQs.com, where he shares his extensive knowledge and expertise in PowerShell, with a particular focus on SharePoint projects. Recognized for his contributions to the tech community, Bijay has been honored with the prestigious Microsoft MVP award. With over 15 years of experience in the software industry, he has a rich professional background, having worked with industry giants such as HP and TCS. His insights and guidance have made him a respected figure in the world of software development and administration. Read more.