Last active
January 17, 2024 12:26
-
-
Save Citillara/3ad19ce3314a0964758f to your computer and use it in GitHub Desktop.
Windows 7 updates to remove to prevent telemetry collection. Disables automatic upgrade to Windows 10
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
:: 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@ffes You can use the following vbscript found in this superuser answer, by adding at the end of the .bat file
cscript HideWindowsUpdates.vbs 3080149 3075249 3068708 3035583 3022345 3021917 2952664 2990214