Please visit the original link: sysin.org/article/dis… To view the latest version. Reprint please retain the source.

Author: GC (at)sysin.org, homepage: www.sysin.org

How do I disable automatic updates for Mozilla FireFox? How do I disable automatic updates for Microsoft Edge? How do I disable automatic updates for Google Chrome

Automatic update without user permission, also do not provide options to disable automatic update, true uncivilized not to mention, the following methods can disable automatic update.

Microsoft Edge for Windows

How does Microsoft Edge automatically update?

Edge 88.0 is used as an example.

The Enterprise edition is automatically updated using the following methods

Services: Microsoft Edge Elevation Service (EdgeUpdate (MicrosoftEdgeElevationService) task plan: MicrosoftEdgeUpdateBrowserReplacementTask MicrosoftEdgeUpdateTaskMachineCore MicrosoftEdgeUpdateTaskMachineUA installation path: C: Program Files (x86)\Microsoft\Edge\Application\msedge.exe  C:\Program Files (x86)\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exeCopy the code

Both 64-bit and 32-bit edges are installed in the “Program Files (x86”) directory (Chrome doesn’t have this problem).

The user version is automatically updated using the following method

Task planning: MicrosoftEdgeUpdateTaskUser the current user SIDCore MicrosoftEdgeUpdateTaskUser current user SIDUA such as:  MicrosoftEdgeUpdateTaskUserS-1-5-21-3860493963-3742860931-3732056798-500Core MicrosoftEdgeUpdateTaskUserS - the 1-5-21-3860493963-3742860931-3732056798-500 ua user installation path: C:\Users\ Username \AppData\Local\Microsoft\Edge\Application\msedge.exe automatic update program path: C:\Users\ Username \AppData\Local\Microsoft\EdgeUpdate\ Microsoftedgeupdate.exeCopy the code

Disable updates using PowerShell

if ([Environment]::Is64BitOperatingSystem -eq"True") {#Write-Host "64-bit OS"
    $PF=${env:ProgramFiles(x86)}
}
else {
    #Write-Host "32-bit OS"
    $PF=$env:ProgramFiles
}

if ($(Test-Path "$PF\Microsoft\Edge\Application\msedge.exe") -eq "True") {
    # End process
    taskkill /im MicrosoftEdgeUpdate.exe /f
    taskkill /im msedge.exe /f
    # Microsoft Edge Update service
    Sc. Exe stop "service name"
    Stop-Service -Name "edgeupdate"
    Stop-Service -Name "edgeupdatem"
    Stop-Service -Name "MicrosoftEdgeElevationService"
    Windows 10 default PS version 5.1 does not have remove-service
    # This cmdlet was added in PS v6. See https://docs.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-core-60?view=powershell-6#cmdle t-updates.
    #Remove-Service -Name "edgeupdate"
    #Remove-Service -Name "edgeupdatem"
    #Remove-Service -Name "MicrosoftEdgeElevationService"
    # sc is a set-content alias in PowerShell, so use sc.exe otherwise it will have no effect after execution
    sc.exe delete "edgeupdate"
    sc.exe delete "edgeupdatem"
    sc.exe delete "MicrosoftEdgeElevationService"
    # Task Planning Enterprise Edition
    schtasks.exe /Delete /TN \MicrosoftEdgeUpdateBrowserReplacementTask /F
    schtasks.exe /Delete /TN \MicrosoftEdgeUpdateTaskMachineCore /F
    schtasks.exe /Delete /TN \MicrosoftEdgeUpdateTaskMachineUA /F
    # Remove the update
    Remove-Item "$PF\Microsoft\EdgeUpdate" -Recurse  -Force
    echo "Disable Microsoft Edge Enterprise Auto Update Successful!"
}
elseif ($(Test-Path "$env:USERPROFILE\AppData\Local\Microsoft\Edge\Application\msedge.exe") -eq "True") {
    # End process
    taskkill /im MicrosoftEdgeUpdate.exe /f
    taskkill /im msedge.exe /f
    The user version does not create a service
    Get SID method
    function Get-CurrentUserSID {
        [CmdletBinding()]
        param(
        )
        Add-Type -AssemblyName System.DirectoryServices.AccountManagement
        return ([System.DirectoryServices.AccountManagement.UserPrincipal]::Current).SID.Value
    }
    # User version task plan
    schtasks.exe /Delete /TN \MicrosoftEdgeUpdateTaskUser$(Get-CurrentUserSID)Core /F
    schtasks.exe /Delete /TN \MicrosoftEdgeUpdateTaskUser$(Get-CurrentUserSID)UA /F
    # Remove the update
    Remove-Item  "$env:USERPROFILE\AppData\Local\Microsoft\EdgeUpdate" -Recurse  -Force
    echo "Disable Microsoft Edge Users Setup Auto Update Successful!"
}
else {
    echo "No Microsoft Edge Installation Detected!"
}
Copy the code

Effect:

Microsoft Edge for Mac

On macOS Edge uses Microsoft AutoUpdate app to update automatically, simply by canceling the add-in and removing execution permissions (or deleting) from the app.

launchctl unload /Library/LaunchAgents/com.microsoft.update.agent.plist sudo chmod -R 644 /Library/Application\ Support/Microsoft/MAU2.0 / Microsoft \ AutoUpdate app#Or simply delete the update programSudo rm - rf/Library/Application/Support/Microsoft/MAU2.0 /Copy the code

Effect:

resources

Microsoft Edge policy configuration

Microsoft Edge download

  • Windows
    • Microsoft Edge X64. Msi Microsoft Edge X64.
    • Microsoft Edge x86. mSI (Fixed link, latest edition)
  • macOS
    • Microsoft Edge Universal (Apple Chip) (Fixed Link, latest edition)
    • Microsoft Edge 64-bit (Intel Chip) (Fixed link, latest version)