Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jumarag/50d4cf93a0b3842c3e0b to your computer and use it in GitHub Desktop.
Save jumarag/50d4cf93a0b3842c3e0b to your computer and use it in GitHub Desktop.
Remove telemetry updates for Windows 7 and 8.1
@echo off
rem #
rem # [EN] Remove telemetry Updates for Windows 7 and 8.1 and Windows 10 Updates
rem # [ES] Elimina actualizaciones de Windows 7 y 8.1 que prepara el equipo para actualizar a Windows 10
rem # También elimina actualizaciones que incluyen telemetría
rem #
rem # Source:
rem # https://gist.github.com/xvitaly/eafa75ed2cb79b3bd4e9#file-remove_crw-cmd
rem #
rem # ##################################################
rem # # Este script debe ejecutarse como Administrador #
rem # ##################################################
rem # Comprobamos si se ha ejecutado el script como Administrador
if not "%cd%"=="%windir%\system32" goto no_administrador
@echo.
@echo =========================================================================
@echo =========================================================================
@echo = Remove Windows 10 Updates for Windows 7 and 8.1 and telemetry Updates =
@echo =========================================================================
@echo =========================================================================
@echo.
pause
@echo Uninstalling KB3139929 (Update for Internet Explorer)
start /w wusa.exe /uninstall /kb:3139929 /quiet /norestart
@echo Uninstalling KB3083710 (Update for "Windows Update")
start /w wusa.exe /uninstall /kb:3083710 /quiet /norestart
@echo Uninstalling KB3083324 (Update for "Windows Update")
start /w wusa.exe /uninstall /kb:3083324 /quiet /norestart
@echo Uninstalling KB3080149 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart
@echo Uninstalling KB3075249 (telemetry for Win7/8.1 to consent.exe)
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart
@echo Uninstalling KB3065987 (Update for "Windows Update" on Win7/Server 2008R2)
start /w wusa.exe /uninstall /kb:3065987 /quiet /norestart
@echo Uninstalling KB3050267 (Update for "Windows Update")
start /w wusa.exe /uninstall /kb:3050267 /quiet /norestart
@echo Uninstalling KB3050265 (Update for "Windows Update" on Win7)
start /w wusa.exe /uninstall /kb:3050265 /quiet /norestart
@echo Uninstalling KB3035583 (Get Windows 10 for Win7sp1/8.1)
start /w wusa.exe /uninstall /kb:3035583 /quiet /norestart
@echo Uninstalling KB3022345 (Win 7 preparation for Windows 10 and Telemetry)
start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart
@echo Uninstalling KB3021917 (Win 7 SP1 Diagnostics for improvement and telemetry- best avoided for security)
start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart
@echo Uninstalling KB2952664 (Get Windows 10 assistant)
start /w wusa.exe /uninstall /kb:2952664 /quiet /norestart
@echo Uninstalling KB3068708 (Win 7 and 8.1 Update prep and more Telemetry)
start /w wusa.exe /uninstall /kb:3068708 /quiet /norestart
@echo Uninstalling KB3044374 (Get Windows 10 for Win8.1)
start /w wusa.exe /uninstall /kb:3044374 /quiet /norestart
@echo Uninstalling KB3146449 (Update for IE 11 / Actualizacion de Internet Explorer 11 para preparar Windows 10)
start /w wusa.exe /uninstall /kb:3146449 /quiet /norestart
@echo Uninstalling KB2990214 (Get Windows 10 for Win7 without sp1)
start /w wusa.exe /uninstall /kb:2990214 /quiet /norestart
@echo Uninstalling KB2990214 (Get Windows 10 for Win7)
start /w wusa.exe /uninstall /kb:2990214 /quiet /norestart
@echo Uninstalling KB3075853 (Update for "Windows Update" on Win8.1/Server 2012R2)
start /w wusa.exe /uninstall /kb:3075853 /quiet /norestart
@echo Uninstalling KB2902907 (Update for Microsoft Security Essentials)
start /w wusa.exe /uninstall /kb:2902907 /quiet /norestart
@echo Uninstalling KB2976987 (Description not available)
start /w wusa.exe /uninstall /kb:2976987 /quiet /norestart
@echo Uninstalling KB2505438 (Removing due to slow-down issues)
start /w wusa.exe /uninstall /kb:2505438 /quiet /norestart
@echo Uninstalling KB2670838 (Known as the "EVIL" Update, removing this because it's known to break Aero, and blur fonts)
start /w wusa.exe /uninstall /kb:2670838 /quiet /norestart
@echo Uninstalling KB2976978 (Prepares Win8/8.1 for Windows 10 upgrade)
start /w wusa.exe /uninstall /kb:2976978 /quiet /norestart
@echo Uninstalling KB2977759 (Prepares for Windows 10 upgrade, diagnostics for whether Win 10 upgrade is possible)
start /w wusa.exe /uninstall /kb:2977759 /quiet /norestart
@echo Uninstalling KB3102810 (Update for "Windows Update")
start /w wusa.exe /uninstall /kb:3102810 /quiet /norestart
@echo Uninstalling KB3112343 (Windows Update Client for Windows 7)
start /w wusa.exe /uninstall /kb:3112343 /quiet /norestart
@echo Uninstalling KB3135445 (Windows Update Client for Windows 7)
start /w wusa.exe /uninstall /kb:3135445 /quiet /norestart
@echo Uninstalling KB3123862 (Windows Update Client for Windows 7)
start /w wusa.exe /uninstall /kb:3123862 /quiet /norestart
@echo Uninstalling KB3081954 (Telemetry Update for Windows 7)
start /w wusa.exe /uninstall /kb:3081954 /quiet /norestart
@echo Uninstalling KB971033 (Update for WAT - Windows Activation Technologies)
start /w wusa.exe /uninstall /kb:971033 /quiet /norestart
@echo.
rem # Eliminamos las actualizaciones que se hayan podido descargar
if exist %windir%\SoftwareDistribution\Download (
rd /S /Q %windir%\SoftwareDistribution\Download 2> nul
mkdir %windir%\SoftwareDistribution\Download
@echo Eliminadas las actualizaciones descargadas de Windows Update
@echo.
) else (
@echo No se ha podido eliminar el contenido de la carpeta %windir%\SoftwareDistribution\Download
)
@echo ====================================================================
@echo = Se necesita reiniciar el equipo para completar la configuracion. =
@echo ====================================================================
@echo.
set /p reiniciar=Reiniciar ahora? [s/N]
if "%reiniciar%"=="s" goto reboot
if "%reiniciar%"=="n" goto salir
goto salir
:no_administrador
@echo.
@echo "Se debe ejecutar como Administrador"
@echo.
pause
goto salir
:reboot
shutdown /r /f /t 0
:salir
cls
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment