-
-
Save neckcen/f099eda0b1cde283cdc9 to your computer and use it in GitHub Desktop.
Remove telemetry updates in Windows 7/8.1. Disables automatic upgrade to Windows 10
This file contains 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
1) Download as ZIP | |
2) Run telemetry_win10_removal.bat as administrator | |
3) Reboot | |
4) Check for and install updates |
This file contains 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
'// Inspired by Colin Bowern: http://serverfault.com/a/341318 | |
If Wscript.Arguments.Count < 1 Then | |
WScript.Echo "Syntax: HideWindowsUpdates.vbs [KB1] [KB2] ..." & vbCRLF & _ | |
" - Example1: HideWindowsUpdates.vbs 3035583" & vbCRLF & _ | |
" - Example2: HideWindowsUpdates.vbs 3035583 3012973" | |
WScript.Quit 1 | |
End If | |
Dim objArgs | |
Set objArgs = Wscript.Arguments | |
Dim updateSession, updateSearcher | |
Set updateSession = CreateObject("Microsoft.Update.Session") | |
Set updateSearcher = updateSession.CreateUpdateSearcher() | |
Wscript.Stdout.Write "Searching for pending updates..." | |
Dim searchResult | |
Set searchResult = updateSearcher.Search("IsInstalled=0") | |
Dim update, kbArticleId, index, index2 | |
WScript.Echo CStr(searchResult.Updates.Count) & " found." | |
For index = 0 To searchResult.Updates.Count - 1 | |
Set update = searchResult.Updates.Item(index) | |
For index2 = 0 To update.KBArticleIDs.Count - 1 | |
kbArticleId = update.KBArticleIDs(index2) | |
For Each hotfixId in objArgs | |
If kbArticleId = hotfixId Then | |
If update.IsHidden = False Then | |
WScript.Echo "Hiding update: " & update.Title | |
update.IsHidden = True | |
Else | |
WScript.Echo "Already hidden: " & update.Title | |
End If | |
End If | |
Next | |
Next | |
Next | |
'// EOF |
This file contains 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 | |
:: forked from https://gist.github.com/Citillara/3ad19ce3314a0964758f, thanks | |
:: 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 | |
:: updates to hide | |
set TO_HIDE= | |
:: win 7/8.1 to win 10 upgrade | |
:: https://support.microsoft.com/en-us/kb/3173040 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3173040 | |
set TO_HIDE=%TO_HIDE% 3173040 | |
:: win journal future compatibility | |
:: https://support.microsoft.com/en-us/kb/3170735 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3170735 | |
set TO_HIDE=%TO_HIDE% 3170735 | |
:: win 7/8.1 to win 10 upgrade | |
:: https://support.microsoft.com/en-us/kb/3123862 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3123862 | |
set TO_HIDE=%TO_HIDE% 3123862 | |
:: win 7 to win 10 upgrade | |
:: https://support.microsoft.com/en-us/kb/3112343 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3112343 | |
set TO_HIDE=%TO_HIDE% 3112343 | |
:: telemetry | |
:: https://support.microsoft.com/en-us/kb/3080149 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3080149 | |
set TO_HIDE=%TO_HIDE% 3080149 | |
:: telemetry | |
:: https://support.microsoft.com/en-us/kb/3075249 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3075249 | |
set TO_HIDE=%TO_HIDE% 3075249 | |
:: telemetry | |
:: https://support.microsoft.com/en-us/kb/3068708 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3068708 | |
set TO_HIDE=%TO_HIDE% 3068708 | |
:: Updating ,net for win 10 | |
:: https://support.microsoft.com/en-us/kb/3046480 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3046480 | |
set TO_HIDE=%TO_HIDE% 3046480 | |
:: Updating Windows 8.1 to 10 | |
:: https://support.microsoft.com/en-us/kb/3044374 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3044374 | |
set TO_HIDE=%TO_HIDE% 3044374 | |
:: Get Windows 10 app | |
:: https://support.microsoft.com/en-us/kb/3035583 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3035583 | |
set TO_HIDE=%TO_HIDE% 3035583 | |
:: telemetry (replaces 3068708) | |
:: https://support.microsoft.com/en-us/kb/3022345 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3022345 | |
set TO_HIDE=%TO_HIDE% 3022345 | |
:: Get Windows 10 preparation & telemetry for Win7 | |
:: https://support.microsoft.com/en-us/kb/3021917 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3021917 | |
set TO_HIDE=%TO_HIDE% 3021917 | |
:: Telemetry (old) | |
wusa %WUSA_OPTIONS% /uninstall /kb:3015249 | |
set TO_HIDE=%TO_HIDE% 3015249 | |
:: Windows 10 preview | |
:: https://support.microsoft.com/en-us/kb/3014460 | |
wusa %WUSA_OPTIONS% /uninstall /kb:3014460 | |
set TO_HIDE=%TO_HIDE% 3014460 | |
:: Windows 10 upgrade (old) | |
wusa %WUSA_OPTIONS% /uninstall /kb:3012973 | |
set TO_HIDE=%TO_HIDE% 3012973 | |
:: Updating Windows 7 to a later version | |
:: https://support.microsoft.com/en-us/kb/2990214 | |
wusa %WUSA_OPTIONS% /uninstall /kb:2990214 | |
set TO_HIDE=%TO_HIDE% 2990214 | |
:: Updating Windows 7 to a later version | |
:: https://support.microsoft.com/en-us/kb/2977759 | |
wusa %WUSA_OPTIONS% /uninstall /kb:2977759 | |
set TO_HIDE=%TO_HIDE% 2977759 | |
:: Updating Windows 8.1 to 10 | |
:: https://support.microsoft.com/en-us/kb/2976978 | |
wusa %WUSA_OPTIONS% /uninstall /kb:2976978 | |
set TO_HIDE=%TO_HIDE% 2976978 | |
:: Get Windows 10 app | |
:: https://support.microsoft.com/en-us/kb/2952664 | |
wusa %WUSA_OPTIONS% /uninstall /kb:2952664 | |
set TO_HIDE=%TO_HIDE% 2952664 | |
:: Hide updates | |
cscript "%~dp0hide_windows_updates.vbs" %TO_HIDE% | |
:: 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 | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment