Created
February 4, 2015 21:23
-
-
Save absynce/c35b93e27ababbeb9063 to your computer and use it in GitHub Desktop.
Disable Chrome updates in Windows via the registry.
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
# ******************************************* | |
# | |
# Mod by: Jared M. Smith | |
# Mod on: 2015.01.14 | |
# Mod y?: Disable Google Chrome updates. | |
# | |
# ******************************************* | |
# Log method | |
function Log { Param([string]$message) Write-Host $message; } | |
# Get current path | |
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition | |
Log "Disabling Google Chrome updates once and for all!" | |
New-Item -Path HKLM:\SOFTWARE\Policies\Google -name Update -value 0 -Force | |
New-Item -Path HKLM:\SOFTWARE\Wow6432Node\Policies\Google -name Update -value 0 -Force | |
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Google\Update -type dword -name AutoUpdateCheckPeriodMinutes -value 0 -Force | |
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Google\Update -type dword -name DisableAutoUpdateChecksCheckboxValue -value 1 -Force | |
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Google\Update -type dword -name "Update{8A69D345-D564-463C-AFF1-A69D9E530F96}" -value 0 -Force | |
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Google\Update -type dword -name UpdateDefault -value 0 -Force | |
New-ItemProperty -Path HKLM:\SOFTWARE\Wow6432Node\Policies\Google\Update -type dword -name AutoUpdateCheckPeriodMinutes -value 0 -Force | |
New-ItemProperty -Path HKLM:\SOFTWARE\Wow6432Node\Policies\Google\Update -type dword -name DisableAutoUpdateChecksCheckboxValue -value 1 -Force | |
New-ItemProperty -Path HKLM:\SOFTWARE\Wow6432Node\Policies\Google\Update -type dword -name "Update{8A69D345-D564-463C-AFF1-A69D9E530F96}" -value 0 -Force | |
New-ItemProperty -Path HKLM:\SOFTWARE\Wow6432Node\Policies\Google\Update -type dword -name UpdateDefault -value 0 -Force | |
Log "Added registry keys to disable Google updates." | |
Stop-Service gupdate | |
Stop-Service gupdatem | |
Log "Stopped running Google update services(s)." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment