Windows 7 updates to remove to prevent telemetry collection. Disables automatic upgrade to Windows 10
:: Removes most telemetry/data collection/potentially unwanted behavior from Windows 7 | |
:: Disables the automatic download of Windows 10 | |
:: Note : be careful to keep KB in descending order | |
:: Comment that line to restore prompts for uninstall/reboot | |
:: Thanks to https://gist.github.com/geoffroyjabouley | |
set WUSA_OPTIONS=/quiet /norestart | |
:: Removes Windows 7-8.1 telemetry (part 1) | |
wusa %WUSA_OPTIONS% /uninstall /kb:3080149 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3075249 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3068708 | |
:: Removes the "Get Windows 10" (GWX) | |
wusa %WUSA_OPTIONS% /uninstall /kb:3035583 | |
:: Removes Windows 7-8.1 telemetry (part 2) | |
wusa %WUSA_OPTIONS% /uninstall /kb:3022345 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3021917 | |
wusa %WUSA_OPTIONS% /uninstall /kb:2952664 | |
:: Removes the "pinning" for updating Windows 7 to a later version | |
wusa %WUSA_OPTIONS% /uninstall /kb:2990214 | |
:: Prevents Windows from automatically download files to prepare move to Windows 10 | |
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableOSUpgrade /t REG_DWORD /d 1 /f | |
:: Disable notifications for upgrade to Windows 10 | |
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade" /v ReservationsAllowed /t REG_DWORD /d 0 /f |
This comment has been minimized.
This comment has been minimized.
@ffes You can use the following vbscript found in this superuser answer, by adding at the end of the .bat file
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
I added
and
Now the new (since Patch Tuesday of October) "Upgrade to Win10" screen in Windows Update is gone, but most of the updates I just uninstalled are back to be installed, and marked as important. Don't know how to fix that with a batch file. Hiding them with the UI seems to work so far.