← All Tweaks
Advanced Tweaks - CAUTION
Microsoft Edge - Remove
Removes Microsoft Edge browser from Windows.
Benefit
Completely removes Edge browser
Impact
highCommands (1)
Write-Host '[WARN] Removing Microsoft Edge may break some Windows features (PWA, widgets, settings panels, search). Proceed with caution.'; Write-Host '--- Stopping Edge processes ---'; Get-Process -Name msedge,MicrosoftEdgeUpdate -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue; Start-Sleep -Milliseconds 500; Write-Host '--- Searching for Edge setup.exe ---'; $bases = @("${env:ProgramFiles(x86)}\Microsoft\Edge\Application", "$env:ProgramFiles\Microsoft\Edge\Application"); $setup = $null; foreach ($b in $bases) { if (Test-Path -LiteralPath $b) { $found = Get-ChildItem -Path $b -Filter 'setup.exe' -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1; if ($found) { $setup = $found.FullName; break } } } if ($setup) { Write-Host "Found setup.exe: $setup"; try { Start-Process -FilePath $setup -ArgumentList '--uninstall', '--system-level', '--verbose-logging', '--force-uninstall' -Wait -ErrorAction Stop; Write-Host '[OK] Edge system uninstall invoked' } catch { Write-Host "[ERR] Uninstall failed: $($_.Exception.Message)" } } else { Write-Host '[INFO] Edge setup.exe not found' } Write-Host '--- Removing Edge AppX packages ---'; Get-AppxPackage -AllUsers -Name 'Microsoft.MicrosoftEdge*' -ErrorAction SilentlyContinue | ForEach-Object { try { Remove-AppxPackage -Package $_.PackageFullName -AllUsers -ErrorAction Stop; Write-Host "[OK] Removed AppX: $($_.Name)" } catch { Write-Host "[WARN] $($_.Name): $($_.Exception.Message)" } } Write-Host '--- Blocking Edge reinstall via policy ---'; $pol = 'HKLM:\SOFTWARE\Microsoft\EdgeUpdate'; if (-not (Test-Path $pol)) { New-Item -Path $pol -Force | Out-Null } New-ItemProperty -Path $pol -Name 'DoNotUpdateToEdgeWithChromium' -PropertyType DWord -Value 1 -Force | Out-Null; Write-Host '[OK] Edge removal attempted. Some components may persist (WebView2, system integrations). Restart required.'Warnings
- Removing Edge may break Widgets, PWAs, in-app browsers, and some Windows search/help features. WebView2 components may persist as they're needed by other apps.