Giter Club home page Giter Club logo

fox's Introduction

Edge Removal 2023

Edge_Removal.bat
$also_remove_webview = 1
why also remove webview? because it is 2 copies of edge, not a slimmed down CEF, and is driving bloated web apps
$also_remove_widgets = 1
why also remove widgets? because it is a webview glorified ad portal on msn and bing news cathering to stupid people
$also_remove_xsocial = 1
why also remove xsocial? because it starts webview setup every boot - xbox gamebar still works without the social crap

after removal can enter into console: firefox to quickly install it, or edge / webview / xsocial to reinstall them
there's some soft-blocking involved in the latest version, so if you want to reinstall edge / webview, do it via above cmds
hybrid script, can just copy-paste into powershell
already includes OpenWebSearch


OpenWebSearch 2023 - redirect microsoft-edge: urls to your default browser

OpenWebSearch.cmd
since v4 works even with Edge fully uninstalled!
if Edge is already removed, install Edge Stable, then remove it via Edge_Removal.bat (to preserve a small stub)
2023.09.13: ~one year since last update (it's that stable), add even more resilience to feature updates / upgrades,
using a task to restore the needed hard-link if edge got reinstalled by windows and it does not open anymore

supports command line parameters: install or remove
since v6 generate a pure batch script to prevent lame AVs false-positives
hybrid script, can just copy-paste into powershell
yes, a rebranded ChrEdgeFkOff


NATURAL SMOOTH SCROLLING V4 "SHARP" - AveYo, 2020-2022

probably the best smooth scrolling preset for mousewheel

copy into firefox / librewolf profile as user.js, add to your existing user.js, or set in about:config


UserChrome.js stand-alone snippet loader by AveYo

featured snippets (Addressbar = Open input as URL on Enter - press Tab to Search instead & OneClickSearch)
also available for other popular js loaders in the chrome/JS folder

ELI5 request: sorry, age restricted

  1. in firefox, open about:support and take note of Application Binary

    • for example: C:\Program Files\Mozilla Firefox\firefox.exe
  2. open a Command Prompt (Admin) or Windows PowerShell (Admin) window

    • press Win+X on windows 10
    • write notepad and press Enter
    • the following steps are done in the Notepad window that just opened
  3. File - New

  4. File - Save As C:\Program Files\Mozilla Firefox\UserChrome.js

    • browse in the dialog to the path noted at step 1
    • write at File name: UserChrome.js
    • select Save as type: All Files
    • select Encoding: ANSI or UTF-8
  5. File - New

  6. File - Save As C:\Program Files\Mozilla Firefox\defaults\pref\enable-UserChrome.js

    • browse in the dialog to the path noted at step 1, and further to defaults / pref subfolder
    • write at File name: enable-UserChrome.js
    • select Save as type: All Files
    • select Encoding: ANSI or UTF-8

steps for linux and macOS are similar, using Terminal and sudo nano/gedit/TextEdit

For MacOS the file paths are /Applications/Firefox.app/Contents/Resources/UserChrome.js
and /Applications/Firefox.app/Contents/Resources/defaults/pref/enable-UserChrome.js ref

fox's People

Contributors

aveyo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fox's Issues

Prevent IFEO from infinitely looping

Warn and cancel ChrEdgeFckOff from installing if the default browser is set to Edge

Check HKCU\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice is set to MSEdgeHTM

EEA Edge Removal

Looks like there's currently 2 "valid" ways to remove Edge outside the EEA.

  1. Adding the current region code to IntegratedServicesRegionPolicySet.json

    https://www.xda-developers.com/enable-eea-restricted-features-on-windows-10-11/

  2. Setting the current region to "AT", "BE", "BG", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GF", "GP", "GR", "HR", "HU", "IE", "IS", "IT", "LI", "LT", "LU", "LV", "MT", "MQ", "NL", "NO", "PL", "PT", "RE", "RO", "SE", "SI", "SK", or "YT"

    https://www.thewindowsclub.com/how-to-remove-edge-and-bing-search-on-windows

2023.08.28 Edge_Removal redux! leaves some items installed

Thanks for your ongoing work on the Edge removal script. The previous version (2023.07.08) also uninstalls Edge Update and Microsoft.MicrosoftEdgeDevToolsClient. The most recent version does not uninstall Edge Update or Microsoft.MicrosoftEdgeDevToolsClient.

Tested "2023.08.28 Edge_Removal redux!" ( dff7019 )

Testing on Win10 IoT Enterprise 21H2
Script outputs these two items:

C:\Program Files (x86)\Microsoft\Edge\Application\116.0.1938.69\Installer\setup.exe --msedge --uninstall --force-uninstall --system-level
Microsoft.MicrosoftEdge_44.19041.1266.0_neutral__8wekyb3d8bbwe

This folder is still present with files in it:
"C:\Program Files (x86)\Microsoft\EdgeUpdate"
(also still present as "Microsoft Edge Update" in Add/Remove programs)

(Get-AppxPackage).Name still lists "Microsoft.MicrosoftEdgeDevToolsClient"

Testing on Win11 Pro
Script outputs these items:

C:\Program Files (x86)\Microsoft\EdgeWebView\Application\115.0.1901.203\Installer\setup.exe --msedgewebview --uninstall --force-uninstall --system-level
C:\Program Files (x86)\Microsoft\Edge\Application\116.0.1938.69\Installer\setup.exe --msedge --uninstall --force-uninstall --system-level
Microsoft.MicrosoftEdge_44.22621.2134.0_neutral__8wekyb3d8bbwe
MicrosoftWindows.Client.WebExperience_cw5n1h2txyewy
MicrosoftWindows.Client.WebExperience_423.13900.0.0_x64__cw5n1h2txyewy

This folder is still present with files in it:
"C:\Program Files (x86)\Microsoft\EdgeUpdate"
(also still present as "Microsoft Edge Update" in Add/Remove programs)

(Get-AppxPackage).Name still lists "Microsoft.MicrosoftEdgeDevToolsClient"

This file still exists:
"C:\Program Files (x86)\Microsoft\EdgeCore\99.0.1150.55\EBWebView\x64\EmbeddedBrowserWebView.dll"
(this is also left behind with the previous version of removal script from 2023.07.08)

On at least one occasion I had to run the script twice to get Edge to uninstall. Maybe something was running that blocked the removal the first time.

Please consider renaming / rebranding Edge redirector script

Your program is just what I needed. But I have an issue with the name.
Even if you try to obfuscate a vulgar or offensive word by leaving out or changing some of the letters, it's the same word and is just as vulgar and offensive as the original word.
I suggest "ChrEdgeBuzzOff". "Buzz off" means the same thing as the phrase you used, and it isn't vulgar.
I hate Micro$$$oft browsers as much as you apparently do. But I can't include anything that uses vulgar offensive language, even if it's thinly obfuscated.

Convert Edge_Removal to pure PowerShell code

There are several ways that Edge_Removal can be sped up by converting it to pure PowerShell code instead of calling cmd.exe to call other programs to do things that PowerShell can do much faster using its own built-in cmdlets.

It looks like the program was originally written as a batch file and only partially converted to PowerShell. Some of the issues that need to be addressed:

  1. Instead of CMD /C REG ADD, use Set-ItemProperty.
  2. Instead of CMD /C REG DELETE, use Remove-ItemProperty.
  3. Instead of CMD /C dism /online, call the PowerShell cmdlet directly.
  4. Instead of using SET to edit strings, just use PowerShell's built-in string-editing cmdlets and functions.
  5. Convert Edge_Removal.bat to a .ps1 file, move the "run as administrator" code to the top. and test whether or not the program already has administrator privilege before spawning a new PowerShell window.

Undo Edge Removal Bat File

Hello!

I read the other post about this, but I was still having issues with Edge not being able to update. Edge is saying it needs to be allowlisted?

I was not sure how to properly undo your script and I am trying to fully re-enable everything.

Would really appreciate some help :) Thanks!

Change line scroll amount

Compared to Chromium browsers the smooth scroll v3 preset scrolls a bit too far. I'd like to match it to Chromium behavior if possible.
Do you know which values I'd have to modify?
Thanks

Bug: Property ProductName does not exist at path

What should I do when I encounter this bug? Maybe the Mic has been fixed and we need to update.

Run the script again whenever you need to reinstall and update edge or webview..

C:\Program Files (x86)\Microsoft\EdgeWebView\Application\124.0.2478.51\Installer\setup.exe --uninstall --msedgewebview --system-level --verbose-logging --force-uninstall
C:\Program Files (x86)\Microsoft\Edge\Application\124.0.2478.51\Installer\setup.exe --uninstall --msedge --system-level --verbose-logging --force-uninstall
C:\Program Files (x86)\Microsoft\EdgeCore\124.0.2478.51\Installer\setup.exe --uninstall --msedge --system-level --verbose-logging --force-uninstall
gp : Property ProductName does not exist at path
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\99E80CA9B0328e74791254777B1F42AE.
At line:158 char:1

  • gp 'HKLM:\SOFTWARE\Classes\Installer\Products*' 'ProductName' |where ...
  •   + CategoryInfo          : InvalidArgument: (ProductName:String) [Get-ItemProperty], PSArgumentException
      + FullyQualifiedErrorId : System.Management.Automation.PSArgumentException,Microsoft.PowerShell.Commands.GetItemPr
     opertyCommand
    
    

C:\Program Files (x86)\Microsoft\EdgeUpdate\1.3.185.29\MicrosoftEdgeUpdate.exe /unregsvc
C:\Program Files (x86)\Microsoft\EdgeUpdate\1.3.185.29\MicrosoftEdgeUpdate.exe /uninstall

EDGE REMOVED! -GET-ANOTHER-BROWSER? ENTER: firefox -REINSTALL? ENTER: edge / webview / xsocial

userchrome.js exception in private mode

The Addressbar redux v4 in latest userchrome.js can cause some bug in private mode on firefox 117.
when i open firefox in normal mode,everthing works fine.however when i open a private mode window, the url input tool bar can not pop up some suggestions and search engine chooses any more.
And meanwhile i can not use enter to finish input , only way is use mouse to click right arrow in input bar can work.
This unnormal phenomenon will continue happen even if private mode window been closed, unless i close firefox and open it again in normal mode then it will work normally.
I have tried delete Addressbar redux v4 in userchrome.js,then everything back to normal.So i guess the origin of this problem should in this function.

Calling Edge_Removal from another batch file

I need to run Edge_Removal from another batch file which performs all the configuration changes needed to set up a new computer.
To do this, everything must run smoothly without operator interaction of any kind unless an error occurs.
Please add a "Nopause" parameter, which will specify that Edge_Removal will exit quietly without any operator interaction if no error occurs, and without leaving any secondary command or PowerShell windows open.
Also, it should set ERRORLEVEL appropriately on exit so the calling file can know whether or not an error occurred. In my files, I use Exit /B 0 (batch) / EXIT 0 (PS) if the file ran successfully and EXIT /B 2 (cmd) / EXIT 2 (PS) if the file ran but threw an error and waited for the user to see it. ERRORLEVEL 1 is thrown by caller if the file could not be run and the caller must pause to allow the operator to read the error message.

Recent updates prevent Edge from uninstalling

MS Edge is an absolute abomination and I do not want it on any of the systems I own or administer. So thank you for your efforts in developing this removal script.

Testing on Windows 10 Pro 21H2 last updated 2022-May, the 2021-Dec-26 "Edge_Removal.bat" works nicely. It completely removes Edge:

  • Settings "Add/Remove Programs" - Edge is no longer listed
  • Control Panel | Programs and Features (uninstall a program) - Edge is no longer listed
  • "C:\Program Files (x86)\Microsoft" - Edge folder are gone
  • Edge icons are gone from the start menu and desktop

Sometime between 2022-May and Oct, Microsoft must have updated Edge so that the older script no longer works (tested on Win10 Pro 21H2 updated Oct 03). I tested the most recent "Edge_Removal.bat" from the main branch and it also does not work. The latest script does render the start menu and desktop icons non-functional, but Edge still is present:

  • Settings "Add/Remove Programs" - Edge is still in the list
  • Control Panel | Programs and Features (uninstall a program) - Edge is still in the list
  • "C:\Program Files (x86)\Microsoft" - Edge folders are still present
  • Edge icons are present in the start menu and desktop (but don't work)
  • Edge can still be launched via "C:\Program Files (x86)\Microsoft\EdgeCore\107.0.1418.42\msedge.exe"

Restore edge

There's a way to restore edge after using Edge_Removal.bat?

Edge Update & Edge WebView2 Runtime reinstall themselves.

Using windows 10 home. Not windows 11/windows 11 dev. These two programs reinstall themselves after a few days when removed using this tool. I recently downloaded this tool to remove them again and they have come back. Darn edge.

image

Can't update ChrEdge

Installing ChrEdgeFkOff.cmd and then going to Microsoft Edge Info Page (Edge Settings) in order to check updates, I get this:
error code 1: 0x80004005 -- system level
If I uninstall ChrEdgeFkOff.cmd the update process works fine.
There is any way to redirect the ChrEdge links to the default browser without breaking updates?

How to undo Edge_Removal.bat?

How to undo Edge_Removal.bat?

I get

How to undo Edge_Removal.bat? 

when I set

$also_remove_webview = 1
## why also remove webview? because it is 2 copies of edge, not a slimmed down CEF, and is driving bloated web apps
$also_remove_widgets = 1
## why also remove widgets? because it is a webview glorified ad portal on msn and bing news cathering to stupid people
$also_remove_xsocial = 1
## why also remove xsocial? because it starts webview setup every boot - xbox gamebar will still work without the social crap

or

$also_remove_webview = 0
## why also remove webview? because it is 2 copies of edge, not a slimmed down CEF, and is driving bloated web apps
$also_remove_widgets = 0
## why also remove widgets? because it is a webview glorified ad portal on msn and bing news cathering to stupid people
$also_remove_xsocial = 0
## why also remove xsocial? because it starts webview setup every boot - xbox gamebar will still work without the social crap

Question: what is the difference between the preinstalled edge webview runtime and the one downloaded from microsoft website?

Dear dev, thanks a lot for the scripts!

I want to ask a question about the difference between preinstalled edge webview runtime and the one downloaded from microsoft website:
https://developer.microsoft.com/en-us/microsoft-edge/webview2/

Their names seems identical, but the one downloaded separately will not be removed by this script, so I presume that they are different?

The reason I am asking is that my company has this PTC windchill and creoviewer combo for viewing documents. It works with preinstalled webview runtime. If I run the script with $also_remove_webview = 0, it still works. If I run the script with $also_remove_webview = 1, it won't work afterwards, even if I install the edge runtime webview again using the installer downloaded from Microsoft website.

It would be much apprecicated if you could provide some insights to this, maybe pointing to a place where I should look? Thank you!

Install / Uninstall switch

Please provide an Install switch (and optionally an Uninstall switch). I install programs like this with a batch file that installs everything needed to configure a new Windows installation (or repair an existing one) in one swell foop. Its operation needs to be unambiguous regardless of whether it's a new installation or a repair or upgrade of an existing one.
If -install is specified: If the program is installed already it is upgraded to the current version, else it is installed.
If -uninstall is specified: If the program is installed it is uninstalled, else a message is printed "not found".
If neither is specified, use the current behavior (install if not installed else uninstall).
If both are specified, throw an error.

Furthermore, a method is needed to prevent the program from waiting for the user to press if it was called from a higher-level script. I suggest including a -nopause switch that if set, inhibits the $_Press_Enter at the end if there wasn't a fatal error.

The program must exit with ERRORLEVEL <> 0 if a fatal error occurs so the calling file can react accordingly.

If this is too much for you, I would be willing to do it for you.

[question] Integration into install.wim / SetupComplete.cmd

Hello.

  1. Is it possible to make changes to install.wim to have Edge removed and other tweaks (task etc.) integrated into it? (offline Edge_Removal.bat ) (Mainly: LTSC 2021).

  2. If not, a version of Edge_Removal.bat that can be called from SetupComplete.cmd that doesn't exit script (uses exit/b ?) and waits for powershell window to do it thing before continuing execution?

Missing right curly brace

In the version I downloaded yesterday, there's a missing right curly brace.
Line 7: $_Paste_in_Powershell = { does not have a matching }.
I examined the code in both Powershell IDE and Notepad++, and neither can find the matching right curly brace for this line.

But today I looked again at the code posted on your GitHub site, and the problem has been fixed (the redundant if in line 29 had been removed).

Regarding alternative location for Webview2

%SystemRoot%\System32\Microsoft-Edge-WebView
You can check the path, which is a non-uninstallable webview2 bound to the system and duplicates the webview2 located at %ProgramFiles(x86)%\Microsoft\EdgeWebView\Application\1*.*.*.*\.

You can use the following .reg file to switch external webview2 to system bound webview2.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\WebView2\BrowserExecutableFolder]
"*"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,\
  25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4d,00,69,\
  00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,2d,00,45,00,64,00,67,00,65,00,\
  2d,00,57,00,65,00,62,00,56,00,69,00,65,00,77,00,00,00

In this way, you should be able to delete external webview2 with peace of mind.

ChrEdgeFKoff issue: Permission denied with Admin

When attempting to run your script as a .cmd with admin permissions given, the following output occurs. Running the script again results in the same output, instead of undoing any changes made in the failed process.

Exception calling "WriteAllText" with "2" argument(s): "Access to the path 'C:\WINDOWS\system32\ChrEdgeFkOff.vbs' is
denied."
At line:15 char:86

  • ... ey 'Debugger' $cmd -force -ea 0; [io.file]::WriteAllText($file, $vbs)
  •                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : UnauthorizedAccessException

ionuttbara copy your bat script removing Edge, rename it as own project and share via Majorgeeks

Hi @AveYo

Majorgeeks admin share sometimes projects from Github.
I recently found this https://www.majorgeeks.com/files/details/edge_remover.html

20230806-1691351342

Works well. Anyway, https://github.com/jbara2002 is not valid anymore.

After digging I found > https://github.com/ionuttbara/edge-remover/tree/main

but self release does not contain source code. https://github.com/ionuttbara/edge-remover/releases/tag/release2.7
EXE is just 7Z SFX.
20230806-1691351088

And yes, this script removing Edge, not Onedrive this time...

@ionuttbara just copy paste your work here and create SFX with 7Z.

Difference is one. Disabled removing Edge Web View compotents.

Kaspersky blocks ChrEdgeFkOff.vbs

I tried putting the script on whitelist and setting exceptions and all that but Kaspersky Security Cloud keeps detecting the script as either HEUR:Trojan-Downloader.VBS.SLoad.gen or USD:DangerousObject.Multi.Generic

Cannot Index Into a Null Array

hello there ;

Today I found myself quite annoyed upon finding out Microsoft Edge still had an entry in the Apps section of Windows 10's Settings ; even though I had already ran an —albeit different— debloater months ago.
The app is labelled as being worth short of a few kilobytes, indicating that it did in fact not get reinstalled, to which I rejoice ; although it still shows up at all, and that bothers me.

So I tried running your debloater in the hope that it may fully remove this piece of garbage Microsoft has been enforcing onto us (EU, please, save us), and I was quite unpleasantly surprised to find out that it is not able to handle missing registry files (i.e. empty reg key), and instead of skipping any problematic step, it will resort to outright crashing, outputting the following message :

Cannot index into a null array.
At line:1 char:4
+ & {iex((gp 'Registry::HKEY_Users\S-1-5-21*\Volatile*' Edge_Removal -e ...
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : NullArray

Which leads me to believe that it has trouble running after another debloater (and even potentially after itself ?), which I find odd.

Redirects succesfully to firefox, but uses bing

Hey! First off - ChrEdgeFkOff works wonderfully. Opens all the searches in firefox now. But it uses bing to search them - is there a way to get rid of bing? All the methods i've seen so far would involve turning web search off entirely, but it's too useful -

If it's not possible, it's alright - just thought i'd ask ^^

Edge remove failure

Hi I have ran this script multiple times, even reinstalling edge through the script and try running the script again, but edge is still there, the icon still shows. What should I do?

Edge gets blocked. Default browser does not start.

Hi,

This modification is exactly what I need. Thanks for creating it.
I have tried with both chrome and firefox as default. I have tried with webroot disabled.
When I run the powershell script as admin there are no errors and it says "installed". When I repeat it says uninstalled.
When installed edge is blocked from running even if I click C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe.
When I do a web search from the start menu, nothing runs. There are no error messages. There are no administrative events.

Any ideas on how do diagnose this?

Thanks
Web Dove

Remove remaining Edge folders when uninstalling

Hi! Here are some commands for your consideration to add to your Edge Removal script to clean up the remaining files.

I used the Command Prompt as a base, but I think you can covert the commands to PowerShell doing the replace "rd /s /q" -> "Remove-Item".

This script covers practically all possibilities from Edge files existing in the system.

rd /s /q "%localappdata%\Edge"
rd /s /q "%localappdata%\MicrosoftEdge"
rd /s /q "%localappdata%\Microsoft Edge"
rd /s /q "%localappdata%\EdgeUpdate"
rd /s /q "%localappdata%\Edge Update"
rd /s /q "%localappdata%\MicrosoftEdgeUpdate"
rd /s /q "%localappdata%\Microsoft EdgeUpdate"
rd /s /q "%localappdata%\Microsoft Edge Update"

rd /s /q "%localappdata%\Microsoft\Edge"
rd /s /q "%localappdata%\Microsoft\MicrosoftEdge"
rd /s /q "%localappdata%\Microsoft\Microsoft Edge"
rd /s /q "%localappdata%\Microsoft\EdgeUpdate"
rd /s /q "%localappdata%\Microsoft\Edge Update"
rd /s /q "%localappdata%\Microsoft\MicrosoftEdgeUpdate"
rd /s /q "%localappdata%\Microsoft\Microsoft EdgeUpdate"
rd /s /q "%localappdata%\Microsoft\Microsoft Edge Update"

rd /s /q "%localappdata%\Microsoft\Windows\Edge"
rd /s /q "%localappdata%\Microsoft\Windows\MicrosoftEdge"
rd /s /q "%localappdata%\Microsoft\Windows\Microsoft Edge"
rd /s /q "%localappdata%\Microsoft\Windows\EdgeUpdate"
rd /s /q "%localappdata%\Microsoft\Windows\Edge Update"
rd /s /q "%localappdata%\Microsoft\Windows\MicrosoftEdgeUpdate"
rd /s /q "%localappdata%\Microsoft\Windows\Microsoft EdgeUpdate"
rd /s /q "%localappdata%\Microsoft\Windows\Microsoft Edge Update"

rd /s /q "%appdata%\Edge"
rd /s /q "%appdata%\MicrosoftEdge"
rd /s /q "%appdata%\Microsoft Edge"
rd /s /q "%appdata%\EdgeUpdate"
rd /s /q "%appdata%\Edge Update"
rd /s /q "%appdata%\MicrosoftEdgeUpdate"
rd /s /q "%appdata%\Microsoft EdgeUpdate"
rd /s /q "%appdata%\Microsoft Edge Update"

rd /s /q "%appdata%\Microsoft\Edge"
rd /s /q "%appdata%\Microsoft\MicrosoftEdge"
rd /s /q "%appdata%\Microsoft\Microsoft Edge"
rd /s /q "%appdata%\Microsoft\EdgeUpdate"
rd /s /q "%appdata%\Microsoft\Edge Update"
rd /s /q "%appdata%\Microsoft\MicrosoftEdgeUpdate"
rd /s /q "%appdata%\Microsoft\Microsoft EdgeUpdate"
rd /s /q "%appdata%\Microsoft\Microsoft Edge Update"

rd /s /q "%appdata%\Microsoft\Windows\Edge"
rd /s /q "%appdata%\Microsoft\Windows\MicrosoftEdge"
rd /s /q "%appdata%\Microsoft\Windows\Microsoft Edge"
rd /s /q "%appdata%\Microsoft\Windows\EdgeUpdate"
rd /s /q "%appdata%\Microsoft\Windows\Edge Update"
rd /s /q "%appdata%\Microsoft\Windows\MicrosoftEdgeUpdate"
rd /s /q "%appdata%\Microsoft\Windows\Microsoft EdgeUpdate"
rd /s /q "%appdata%\Microsoft\Windows\Microsoft Edge Update"

rd /s /q "%programdata%\Edge"
rd /s /q "%programdata%\MicrosoftEdge"
rd /s /q "%programdata%\Microsoft Edge"
rd /s /q "%programdata%\EdgeUpdate"
rd /s /q "%programdata%\Edge Update"
rd /s /q "%programdata%\MicrosoftEdgeUpdate"
rd /s /q "%programdata%\Microsoft EdgeUpdate"
rd /s /q "%programdata%\Microsoft Edge Update"

rd /s /q "%programdata%\Microsoft\Edge"
rd /s /q "%programdata%\Microsoft\MicrosoftEdge"
rd /s /q "%programdata%\Microsoft\Microsoft Edge"
rd /s /q "%programdata%\Microsoft\EdgeUpdate"
rd /s /q "%programdata%\Microsoft\Edge Update"
rd /s /q "%programdata%\Microsoft\MicrosoftEdgeUpdate"
rd /s /q "%programdata%\Microsoft\Microsoft EdgeUpdate"
rd /s /q "%programdata%\Microsoft\Microsoft Edge Update"

rd /s /q "%programdata%\Microsoft\Windows\Edge"
rd /s /q "%programdata%\Microsoft\Windows\MicrosoftEdge"
rd /s /q "%programdata%\Microsoft\Windows\Microsoft Edge"
rd /s /q "%programdata%\Microsoft\Windows\EdgeUpdate"
rd /s /q "%programdata%\Microsoft\Windows\Edge Update"
rd /s /q "%programdata%\Microsoft\Windows\MicrosoftEdgeUpdate"
rd /s /q "%programdata%\Microsoft\Windows\Microsoft EdgeUpdate"
rd /s /q "%programdata%\Microsoft\Windows\Microsoft Edge Update"

Edge doesn't seem to create folders in AppData\LocalLow.

yay it came back !

Looking for any good tips on keeping edge from getting reinstalled .. OVER AND OVER AGAIN??? ...for now I run your script and clobber anything with a edge.exe ...


echo "run this as TRUSTED INSTALLER use  ExecTI.exe "
cd c:\


FOR /F "tokens=* delims=" %%A in ('dir /b /s *edge*.exe') do (
echo "clobbering  %%A"
echo '' > "%%A"

)
pause

Ran ChkrEdgeFkOff.cmd but Now I can't Open Edge at All.

Hi, I just installed this script a few days ago. Wow, works great!

Except today I wanted to use Edge and it won't work! What's the deal? Did it delete Edge altogether? Can I fix this without deleting (running the command again) the whole command? Obviously, I am not a Windows programmer! :-)

Please help! Thank you!

Edge Remover - One that actually works

Credit: https://github.com/fr33thytweaks/Ultimate-Windows-Optimization-Guide/blob/5cbab9a89ba35f49554afee9d8f1b60f778d2ddf/6%20Windows/14%20Edge.ps1#L53-L106

# stop edge running
    $stopedgerunning = 'MicrosoftEdgeUpdate', 'OneDrive', 'WidgetService', 'Widgets', 'msedge', 'msedgewebview2'
    $stopedgerunning | ForEach-Object { Stop-Process -Name $_ -Force -ErrorAction SilentlyContinue }

    # uninstall copilot
    # doesnt exist on win 10
    Get-AppxPackage -AllUsers *Microsoft.Windows.Ai.Copilot.Provider* | Remove-AppxPackage

    # disable edge updates regedit
    if ((Test-Path -Path HKLM:\SOFTWARE\Microsoft\EdgeUpdate) -ne $true) {
        New-Item -Path HKLM:\SOFTWARE\Microsoft\EdgeUpdate -Force
    }
    New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\EdgeUpdate -Name DoNotUpdateToEdgeWithChromium -PropertyType DWord -Value 1 -Force

    # allow edge uninstall regedit
    if ((Test-Path -Path HKLM:\Software\WOW6432Node\Microsoft\EdgeUpdateDev) -ne $true) {
        New-Item HKLM:\Software\WOW6432Node\Microsoft\EdgeUpdateDev -Force
    }
    New-ItemProperty -Path HKLM:\Software\WOW6432Node\Microsoft\EdgeUpdateDev -Name 'AllowUninstall' -Value '' -PropertyType String -Force

    # new folder to uninstall edge
    if ((Test-Path -Path "$env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe") -ne $true) {
        New-Item -Path "$env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" -ItemType Directory
    }

    # new file to uninstall edge
    if ((Test-Path -Path "$env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe") -ne $true) {
        New-Item -Path "$env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" -ItemType File -Name 'MicrosoftEdge.exe'
    }

    # find edge uninstall string
    $regview = [Microsoft.Win32.RegistryView]::Registry32
    $microsoft = [Microsoft.Win32.RegistryKey]::OpenBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine, $regview).
    OpenSubKey('SOFTWARE\Microsoft', $true)
    $uninstallregkey = $microsoft.OpenSubKey('Windows\CurrentVersion\Uninstall\Microsoft Edge')
    try {
        $uninstallstring = $uninstallregkey.GetValue('UninstallString') + ' --force-uninstall'
    }
    catch {
    }

    # uninstall edge
    Start-Process cmd.exe "/c $uninstallstring" -WindowStyle Hidden -Wait

    # remove folder file
    if ((Test-Path -Path "$env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe") -eq $true) {
        Remove-Item -Recurse -Force "$env:SystemRoot\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe"
    }

    # find edgeupdate.exe
    $edgeupdate = @(); 'LocalApplicationData', 'ProgramFilesX86', 'ProgramFiles' | ForEach-Object {
        $folder = [Environment]::GetFolderPath($_)
        $edgeupdate += Get-ChildItem "$folder\Microsoft\EdgeUpdate\*.*.*.*\MicrosoftEdgeUpdate.exe" -rec -ea 0
    }

    # find edgeupdate & allow uninstall regedit
    $global:REG = 'HKCU:\SOFTWARE', 'HKLM:\SOFTWARE', 'HKCU:\SOFTWARE\Policies', 'HKLM:\SOFTWARE\Policies', 'HKCU:\SOFTWARE\WOW6432Node', 'HKLM:\SOFTWARE\WOW6432Node', 'HKCU:\SOFTWARE\WOW6432Node\Policies', 'HKLM:\SOFTWARE\WOW6432Node\Policies'
    foreach ($location in $REG) {
        Remove-Item "$location\Microsoft\EdgeUpdate" -Recurse -Force -ErrorAction SilentlyContinue 
    }

    # uninstall edgeupdate
    foreach ($path in $edgeupdate) {
        if (Test-Path $path) {
            Start-Process -Wait $path -Args '/unregsvc' | Out-Null 
        }
        do {
            Start-Sleep 3 
        } while ((Get-Process -Name 'setup', 'MicrosoftEdge*' -ErrorAction SilentlyContinue).Path -like '*\Microsoft\Edge*')
        if (Test-Path $path) {
            Start-Process -Wait $path -Args '/uninstall' | Out-Null 
        }
        do {
            Start-Sleep 3 
        } while ((Get-Process -Name 'setup', 'MicrosoftEdge*' -ErrorAction SilentlyContinue).Path -like '*\Microsoft\Edge*')
    }

    # remove edgewebview regedit
    if ((Test-Path -Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView') -eq $true) {
        Remove-Item -Path 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView' -Force
    }
    if ((Test-Path -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView') -eq $true) {
        Remove-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView' -Force
    }

    # remove folders edge edgecore edgeupdate edgewebview temp
    if ((Test-Path -Path "$env:C:\Program Files (x86)\Microsoft") -eq $true) {
        Remove-Item -Recurse -Force "$env:C:\Program Files (x86)\Microsoft"
    }

    # remove edge shortcuts
    if ((Test-Path -Path "$env:C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge.lnk") -eq $true) {
        Remove-Item -Force "$env:C:\Windows\System32\config\systemprofile\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge.lnk"
    }
    if ((Test-Path -Path "$env:USERPROFILE\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge.lnk") -eq $true) {
        Remove-Item -Force "$env:USERPROFILE\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge.lnk"
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.