How to Remove Internet Explorer from Windows 10 Using PowerShell
Internet Explorer 11 is a retired browser, but it can still sit on Windows 10 machines as an optional feature. This guide shows how to check its state, remove it with Disable-WindowsOptionalFeature, verify the result, roll it back if needed and fix the errors you are most likely to meet.

Turn off Internet Explorer 11 with one elevated PowerShell command
On Windows 10, Internet Explorer 11 is delivered as an optional Windows feature. That means you can check its state and disable it from PowerShell without third-party tools, and you can script the same steps across many computers.
Check first
Use Get-WindowsOptionalFeature to see whether the feature is enabled before you change anything.
Disable the feature
Run Disable-WindowsOptionalFeature from an elevated PowerShell window, then restart.
Keep a way back
The change is reversible with Enable-WindowsOptionalFeature if an old application needs it.
Introduction
Microsoft retired the Internet Explorer 11 desktop application on June 15, 2022, and later disabled it on supported Windows 10 versions through Microsoft Edge updates. Even so, the Internet Explorer feature can remain present on a Windows 10 installation, which leaves an end-of-life browser component on the system.
Removing it is a simple hardening step for administrators who want to reduce the attack surface, and a good cleanup step for anyone who no longer needs it. Because Internet Explorer 11 is an optional feature on Windows 10, PowerShell can do the job directly.
How the Removal Works
On Windows 10, Internet Explorer 11 appears as a Windows optional feature. The feature name depends on the architecture:
| Windows architecture | Feature name |
|---|---|
| 64-bit (x64) | Internet-Explorer-Optional-amd64 |
| 32-bit (x86) | Internet-Explorer-Optional-x86 |
Disabling the feature removes Internet Explorer 11 from the operating system, and a restart completes the change. Because it is a feature toggle, you can enable it again later.
Requirements
- A Windows 10 computer where Internet Explorer 11 is installed as an optional feature
- An account with local administrator rights
- Windows PowerShell opened with elevated privileges (Run as administrator)
- Permission to restart the computer when the removal finishes
- For remote or bulk use: PowerShell remoting enabled on the target computers
Step 1: Open PowerShell as Administrator
Right-click the Start button and choose Windows PowerShell (Admin), or search for PowerShell, right-click it and select Run as administrator. Approve the User Account Control prompt.
Start → Windows PowerShell → Run as administratorStep 2: Check Whether Internet Explorer Is Installed
Query the optional feature to see its current state:
# 64-bit Windows 10
Get-WindowsOptionalFeature -Online -FeatureName Internet-Explorer-Optional-amd64In the output, State : Enabled means Internet Explorer 11 is installed. If it already shows Disabled, there is nothing to remove.
If you are not sure of the exact feature name on a machine, list every matching feature:
Get-WindowsOptionalFeature -Online | Where-Object FeatureName -like "*Internet-Explorer*"Step 3: Remove Internet Explorer
Run the following command to disable the feature:
# 64-bit Windows 10 (restart later)
Disable-WindowsOptionalFeature -Online -FeatureName Internet-Explorer-Optional-amd64 -NoRestart
# 32-bit Windows 10
Disable-WindowsOptionalFeature -Online -FeatureName Internet-Explorer-Optional-x86 -NoRestartThe -NoRestart switch stops PowerShell from prompting for or forcing a restart, so you can choose when to reboot. Leave it out if you prefer to be prompted at the end.
dism /online /Disable-Feature /FeatureName:Internet-Explorer-Optional-amd64. This is the method shown in Microsoft’s own guidance.
Step 4: Restart and Verify
Restart the computer to complete the removal:
Restart-ComputerAfter it comes back, open PowerShell as administrator again and confirm the feature is off:
Get-WindowsOptionalFeature -Online -FeatureName Internet-Explorer-Optional-amd64 | Select-Object FeatureName, StateYou should see State : Disabled. Internet Explorer 11 should also no longer appear under Settings → Apps → Optional features.
Step 5: Restore Internet Explorer (Optional)
If an application breaks and you need Internet Explorer 11 back, enable the feature again and restart:
Enable-WindowsOptionalFeature -Online -FeatureName Internet-Explorer-Optional-amd64 -NoRestart
Restart-ComputerBecause Microsoft has disabled the Internet Explorer 11 desktop app on supported Windows 10 versions, treat re-enabling as a temporary workaround and move the dependent site or app to Edge IE mode or a modern alternative.
Automate It with a Script
This script checks for the feature first and only disables it when it is still enabled. It handles both 64-bit and 32-bit feature names.
# Run in an elevated PowerShell session
$ie = Get-WindowsOptionalFeature -Online | Where-Object { $_.FeatureName -like "Internet-Explorer-Optional-*" }
if ($ie -and $ie.State -eq "Enabled") {
Disable-WindowsOptionalFeature -Online -FeatureName $ie.FeatureName -NoRestart
Write-Host "Internet Explorer disabled. Restart required."
} else {
Write-Host "Internet Explorer is already disabled or not present."
}To run the same check on several computers, wrap it in Invoke-Command with a list of computer names. This requires PowerShell remoting and administrative rights on each target. Test on a single computer first.
Invoke-Command -ComputerName PC01, PC02 -ScriptBlock {
Disable-WindowsOptionalFeature -Online -FeatureName Internet-Explorer-Optional-amd64 -NoRestart
}Troubleshooting
“Feature name is unknown”
You may be using the wrong architecture name, or the feature is not present. List features with Get-WindowsOptionalFeature -Online | Where-Object FeatureName -like "*Internet-Explorer*" and use the exact name returned.
Access denied or elevation error
PowerShell is not running as administrator. Close it and reopen with Run as administrator.
Internet Explorer still seems to open
On supported Windows 10 versions, Internet Explorer 11 may already be disabled and redirect to Microsoft Edge. Confirm the feature state and restart, then check what is actually launching.
A legacy site or app stopped working
Use Microsoft Edge’s IE mode for legacy sites instead of restoring the standalone browser. Re-enable the feature only as a short-term fix.
Feature still shows as pending
The restart has not happened yet. Restart the computer and run the verification command again.
Microsoft capability guidance
Microsoft’s disable guidance also lists a DISM capability command for some builds. If the optional feature approach does not apply to your build, review the official page linked in the sources.
Best Practices
- Test on a single machine, then roll out gradually
- Check the feature state before and after, and log the result
- Use
-NoRestartin scripts and schedule restarts at a convenient time - Inventory applications that may depend on Internet Explorer before removal
- Move legacy web apps to Edge IE mode or modernize them
- Keep Windows and Microsoft Edge updated
Comparison of Removal Methods
| Method | Best for | Command or location |
|---|---|---|
| PowerShell | Single machines and scripting | Disable-WindowsOptionalFeature |
| DISM | Command Prompt, scripts and imaging workflows | dism /online /Disable-Feature |
| Settings (Optional features) | One-off manual removal | Settings → Apps → Optional features |
| Group Policy | Disabling Internet Explorer as a standalone browser while keeping IE mode in Edge | See Microsoft’s disable guidance |
Frequently Asked Questions
What is the PowerShell command to remove Internet Explorer from Windows 10?
On 64-bit Windows 10, run Disable-WindowsOptionalFeature -Online -FeatureName Internet-Explorer-Optional-amd64 from an elevated PowerShell window, then restart.
Do I need to restart after removing Internet Explorer?
Yes. A restart completes the removal. Use the -NoRestart switch if you want to restart later.
Can I get Internet Explorer back?
Yes. Run Enable-WindowsOptionalFeature with the same feature name and restart. Treat this as a temporary measure.
Will removing Internet Explorer break Microsoft Edge?
No. Microsoft Edge is a separate browser. Edge’s IE mode does not require the standalone Internet Explorer application, but check Microsoft’s guidance if you rely on it.
Does this work on 32-bit Windows 10?
Yes, but use the x86 feature name, Internet-Explorer-Optional-x86.
Can I remove it from many computers at once?
Yes. Use Invoke-Command with a list of computers, or deploy a script through your management tool. Test on one machine first.
Conclusion
Want more Windows and PowerShell guides?
Browse practical tutorials on Windows Server, Active Directory, Azure and hybrid infrastructure on VMoreCloud.
Explore more tutorials →Sources & Further Reading
Technical note: Commands in this guide were written for Windows 10 with administrator rights. Test on a non-production machine first, and confirm current behavior against Microsoft’s documentation, because Internet Explorer’s status can change with Windows and Microsoft Edge updates.

