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
| $EdgePath = "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" | |
| $EdgeUWP = "$Env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" | |
| if (Test-Path $EdgePath) { | |
| New-Item $EdgeUWP\MicrosoftEdge.exe -Force | Out-Null | |
| cmd /c ((Get-ItemProperty $EdgePath).UninstallString + ' --force-uninstall --delete-profile') | |
| Write-Host "Edge was Uninstalled" -ForegroundColor Green | |
| } else { | |
| Write-Output "Edge is not installed" | |
| } |
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
| Remove-Item 'C:\Program Files*\Windows Defender*' -Recurse -Force | |
| Set-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' 'DisableAntiSpyware' -Value 1 | |
| Set-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' 'DisableAntiVirus' -Value 1 | |
| Set-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender' 'ServiceKeepAlive' -Value 1 | |
| Remove-Item 'HKLM:\SYSTEM\CurrentControlSet\Services\SecurityHealthService' -Recurse -Force | |
| Remove-ItemProperty 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run' SecurityHealth |
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
| irm gist.github.com/GabiNun/c576d453134e73868d535f52bcf5d120/raw/RemoveEdge.ps1 | iex | |
| Get-Process *Edge*,SearchHost | Stop-Process -Force | |
| Remove-Item "$Env:ProgramFiles (x86)\Microsoft" -Recurse -Force | |
| sc.exe delete edgeupdate | |
| sc.exe delete edgeupdatem | |
| Unregister-ScheduledTask *Edge* -Confirm:$False | |
| $Appx = (Get-AppxPackage *EdgeDevToolsClient).PackageFullName;$Sid = (glu $Env:USERNAME).Sid.Value | |
| New-Item HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\EndOfLife\$Sid\$Appx -Force;Remove-AppxPackage $Appx |