Created
March 1, 2026 10:25
-
-
Save GabiNun/329c01be57d546e5c8942861cb538e94 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $Path = Get-ChildItem -Path "$Env:ProgramFiles (x86)\Microsoft\Edge\Application\*\Installer\setup.exe" | Select-Object -First 1 | |
| $Directory = "$Env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" | |
| New-Item -Path $Directory -ItemType Directory | |
| New-Item -Path $Directory\MicrosoftEdge.exe -ItemType File | |
| Start-Process -FilePath $Path -ArgumentList '--uninstall --system-level --force-uninstall --delete-profile' -Wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment