chrome历史版本下载: https://www.aliyundrive.com/s/T6bLRwMRWoF
disable-chrome-auto-update.ps1if ([Environment]::Is64BitOperatingSystem -eq "True") { $PF=${env:ProgramFiles(x86)} } else { $PF=$env:ProgramFiles }
if ($(Test-Path "$env:ProgramFiles\Google\Chrome\Application\chrome.exe") -eq "true") { taskkill /im chrome.exe /f taskkill /im GoogleUpdate.exe /f Stop-Service -Name "gupdate" Stop-Service -Name "gupdatem" Stop-Service -Name "GoogleChromeElevationService" sc.exe delete "gupdate" sc.exe delete "gupdatem" sc.exe delete "GoogleChromeElevationService" Get-ScheduledTask -taskname GoogleUpdate* | Unregister-ScheduledTask -Confirm: $false Remove-Item "$PF\Google\Update\" -Recurse -Force Write-Output "Disable Google Chrome Enterprise x64 Auto Update Successful!" } elseif ($(Test-Path "${env:ProgramFiles(x86)}\Google\Chrome\Application\chrome.exe") -eq "true") { taskkill /im chrome.exe /f taskkill /im GoogleUpdate.exe /f Stop-Service -Name "gupdate" Stop-Service -Name "gupdatem" Stop-Service -Name "GoogleChromeElevationService" sc.exe delete "gupdate" sc.exe delete "gupdatem" sc.exe delete "GoogleChromeElevationService" Get-ScheduledTask -taskname GoogleUpdate* | Unregister-ScheduledTask -Confirm: $false Remove-Item "$PF\Google\Update\" -Recurse -Force Write-Output "Disable Google Chrome Enterprise x86 Auto Update Successful!" } else { Write-Output "No Google Chrome Enterprise Installation Detected!" }
|