[Chit Chat] Windows 10 Enterprise/IoT Enterprise (N) LTSC 2021

Discussion in 'Windows 10' started by Tito, Sep 18, 2021.

Thread Status:
Not open for further replies.
  1. Dude Guyman

    Dude Guyman MDL Senior Member

    Jun 20, 2017
    331
    326
    10
    Meh, I don't care for Edge, but it's not a deal breaker or anything. I expected that to make it into the next LTS version.
     
  2. misterkrizz

    misterkrizz MDL Novice

    Aug 14, 2019
    7
    3
    0
    I'm sure things like Winaerotweaker or Win10Privacy will have tools to rip Edge out of it anyway.
     
  3. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,769
    7,711
    210
    Just a few lines of code (original from @abbodi1406):

    Code:
    @setlocal DisableDelayedExpansion
    @echo off
    if defined PROCESSOR_ARCHITEW6432 start %SystemRoot%\Sysnative\cmd.exe /c "%0 " &exit
    reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || (echo Run the script as administrator&goto :TheEnd)
    
    set "u_path=%LocalAppData%\Microsoft"
    set "s_path=%ProgramFiles(x86)%\Microsoft"
    if /i %PROCESSOR_ARCHITECTURE%==x86 (if not defined PROCESSOR_ARCHITEW6432 (
      set "s_path=%ProgramFiles%\Microsoft"
      )
    )
    
    @cls
    if /I $%1==$FORCE goto autoyes
    echo.
    choice /C YN /N /M "Microsoft Edge Chromium will be uninstalled. Continue? [y/n]: "
    if errorlevel 2 exit
    
    :autoyes
    sc.exe config EdgeUpdate start= disabled 2>nul
    sc.exe config edgeupdatem start= disabled 2>nul
    taskkill.exe /IM MSEdgeUpdate.exe /T /F 2>nul
    taskkill.exe /IM MSEdge.exe /T /F 2>nul
    sc.exe delete EdgeUpdate 2>nul
    sc.exe delete edgeupdatem 2>nul
    reg.exe delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f 2>nul
    reg.exe delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /v NoRemove /f 2>nul
    reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f 2>nul
    reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /v NoRemove /f 2>nul
    reg.exe delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /f 2>nul
    reg.exe delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /v NoRemove /f 2>nul
    
    echo.
    for /D %%i in ("%u_path%\Edge SxS\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Canary...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-sxs --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%u_path%\Edge Internal\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Internal...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-internal --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%u_path%\Edge Dev\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Dev...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-dev --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%u_path%\Edge Beta\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Beta...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-beta --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%u_path%\Edge\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Stable...
    start "" /w "%%i\installer\setup.exe" --uninstall --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%u_path%\EdgeWebView\Application\*") do if exist "%%i\installer\setup.exe" (
    echo WebView2 Runtime...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedgewebview --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%s_path%\EdgeWebView\Application\*") do if exist "%%i\installer\setup.exe" (
    echo WebView2 Runtime...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedgewebview --system-level --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%s_path%\Edge\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Stable...
    start "" /w "%%i\installer\setup.exe" --uninstall --system-level --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%s_path%\Edge Beta\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Beta...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-beta --system-level --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%s_path%\Edge Dev\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Dev...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-dev --system-level --verbose-logging --force-uninstall --delete-profile
    )
    for /D %%i in ("%s_path%\Edge Internal\Application\*") do if exist "%%i\installer\setup.exe" (
    echo Internal...
    start "" /w "%%i\installer\setup.exe" --uninstall --msedge-internal --system-level --verbose-logging --force-uninstall --delete-profile
    )
    
    if exist "\\?\%ProgramFiles(x86)%\Microsoft\Edge\" rmdir /s /q "\\?\%ProgramFiles(x86)%\Microsoft\Edge"
    if exist "\\?\%ProgramFiles(x86)%\Microsoft\EdgeUpdate\" rmdir /s /q "\\?\%ProgramFiles(x86)%\Microsoft\EdgeUpdate"
    if exist "\\?\%ProgramFiles(x86)%\Microsoft\Temp\" rmdir /s /q "\\?\%ProgramFiles(x86)%\Microsoft\Temp"
    if exist "\\?\%ProgramFiles%\Microsoft\Edge\" rmdir /s /q "\\?\%ProgramFiles%\Microsoft\Edge"
    if exist "\\?\%ProgramFiles%\Microsoft\EdgeUpdate\" rmdir /s /q "\\?\%ProgramFiles%\Microsoft\EdgeUpdate"
    if exist "\\?\%ProgramFiles%\Microsoft\Temp\" rmdir /s /q "\\?\%ProgramFiles%\Microsoft\Temp"
    if exist "\\?\%AppData%\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge*.lnk" del /f /q "\\?\%AppData%\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge*.lnk"
    if exist "\\?\%SystemRoot%\System32\config\systemprofile\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge*.lnk" del /f /q "\\?\%SystemRoot%\System32\config\systemprofile\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge*.lnk"
    if exist "\\?\%UserProfile%\Desktop\Microsoft Edge.lnk" del /f /q "\\?\%UserProfile%\Desktop\Microsoft Edge.lnk"
    if exist "\\?\%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" del /f /q "\\?\%APPDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk"
    reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /f 2>nul
    
    reg.exe add "HKLM\SOFTWARE\Microsoft\EdgeUpdate" /v DoNotUpdateToEdgeWithChromium /t REG_DWORD /d 1 /f 2>nul
    
    if /I $%1==$FORCE exit
    
    :TheEnd
    echo.
    echo Press any key to exit.
    pause >nul
    exit
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. AeonX

    AeonX MDL Addicted

    May 24, 2013
    796
    725
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. AeonX

    AeonX MDL Addicted

    May 24, 2013
    796
    725
    30
    Yes there are already several tools that remove Edge, the most difficult is to keep it removed because if you install a cumulative update it is reinstalled.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. 3zero3

    3zero3 MDL Senior Member

    Apr 26, 2012
    421
    686
    10
  7. Dude Guyman

    Dude Guyman MDL Senior Member

    Jun 20, 2017
    331
    326
    10
    Yet, it works perfectly fine on Windows 7 (minus those features, of course) :p
    #planned-obsolescence
     
  8. AeonX

    AeonX MDL Addicted

    May 24, 2013
    796
    725
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Perdinho3

    Perdinho3 MDL Novice

    Oct 20, 2021
    12
    13
    0
    first of all these are not "few" lines
    second this code is garbage. it relies on rmdir deletion of directories
    do you know why? cause edgeupdate.exe /uninstall native command does not work
    do you know why? cause edge uwp is still present in the system
    so those are "few" lines of BS
     
  10. mememan1234

    mememan1234 MDL Novice

    Oct 28, 2021
    30
    17
    0
    see that doesn’t make sense to me. why bother uninstalling edge? any programs that use an embedded browser for, say, a sign in screen will no longer work.

    i’m fine with having components installed, as long as they aren’t running in the background. especially components like edge that can come close to privacy browsing options like firefox (though it still needs some work). edge is better than ie

    ltsc is the only version that allows disabling any and everything. you don’t need to uninstall it. you’ll obliterate ur windows instances this way
     
  11. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,769
    7,711
    210
    As is your so called "comment". *plonk*
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    365
    540
    10
    #372 spanishfly, Nov 2, 2021
    Last edited: Nov 2, 2021
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,769
    7,711
    210
    The code I posted is from @abbodi1406. There are only a few things changed.
    1. "Force" option. Call the script with "force" (case insensitive) as parameter, it will not ask for confirmation and auto-exit. Using this with a startup task.
    2. Configuring the two services, killing the processes and finally deleting them. Uninstallation does not work if the processes are still running.
    3. Added the deletion of a few leftover Uninstall strings. Trying to cleanup the shortcuts as best as possible.
    4. Changed the paths in rmdir commands (for removing leftover files and directories) to direct filesystem calls (starting with \\?\). Had a few issues with not everything getting deleted completely. Probably not necessary, but can work around the 260 character limit in paths.

    Also using EdgeDeflector, so, any URLs that would try to call Edge and error out now open in the default browser.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. crven-gjaol

    crven-gjaol MDL Novice

    Oct 21, 2021
    42
    9
    0
    Wouldn't removing Edge Chromium revert to Edge Legacy? Which is even worse option
     
  15. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,769
    7,711
    210
    No, Edge Legacy is gone (unless your build is very old).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. fch1993

    fch1993 MDL Senior Member

    Mar 14, 2020
    382
    275
    10
  17. Hasefroch

    Hasefroch MDL Senior Member

    Dec 24, 2018
    434
    258
    10
    Expect someone can leak the iso hahaha
     
  18. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    365
    540
    10
    I'll quote myself.
    You can use the known key to modify a known working GitHub project to apply a HWID.
    Look here behind the "SPOILER: HWID ACTIVATION" to get a visual of one of many posted examples seen on the reconstruction thread.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    365
    540
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. gearman

    gearman MDL Novice

    Sep 12, 2009
    46
    18
    0
    #380 gearman, Nov 3, 2021
    Last edited: Nov 3, 2021
    deleted
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...