SHARE
TWEET

Windows 10 Crapware and Telemetry Hotfix Uninstaller

megazuz Aug 23rd, 2015 6,068 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. cls
  3. echo.
  4. echo Windows 10 Crapware and Telemetry Hotfix Uninstaller 0.2 by zuz (based on Uninstaller 0.1 by @seitics http://pastebin.com/8z7VXeb6)
  5. echo NO WARRANTY, EITHER EXPRESS OR IMPLIED. USE AT YOUR OWN RISK.
  6. echo.
  7. echo Uninstalls and hides the following hotfixes in conjunction with advertisements of Windows 10 on Windows 7/8/8.1 computers:
  8. echo KB3035583, KB2952664, KB2976978, KB3021917
  9. echo And hotfixes, that adding collecting telemeptry and customer expierence information:
  10. echo KB3022345, KB3068708, KB3075249, KB3080149
  11. echo See: http://www.ghacks.net/2015/04/17/how-to-remove-windows-10-upgrade-updates-in-windows-7-and-8/
  12. echo.
  13. echo Requirements
  14. echo.
  15. echo + Must be run from an elevated prompt
  16. echo + Working Internet connection (to reach Microsoft Windows Update)
  17. echo + PSWindowsUpdate in sub-directory of same name relative to this script
  18. echo   Download: https://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc
  19. echo.
  20. at > nul
  21. if not %ERRORLEVEL% EQU 0 (
  22.       echo Error: Need administrative privileges, aborting.
  23.       goto :eof
  24. )
  25. echo Press Ctrl-C to cancel, Enter to continue
  26. pause >nul
  27. cd /d %~dp0
  28. echo.
  29. echo * Killing GWX.exe
  30. taskkill /f /im GWX.exe /T
  31. echo.
  32. echo * Listing any installed crapware hotfix KBs
  33. powershell get-hotfix -ErrorAction SilentlyContinue -id KB3035583,KB2952664,KB2976978,KB3021917,KB3022345,KB3068708,KB3075249,KB3080149
  34. echo * Uninstalling Microsoft crapware, hang tight
  35. echo.
  36. echo KB3035583 (Windows 7/8/8.1 - Update installs Get Windows 10 app in Windows 8.1 and Windows 7 SP1)
  37. wusa /uninstall /kb:3035583 /quiet /norestart
  38. echo.
  39. echo KB2952664 (Windows 7 only - Compatibility update for upgrading Windows 7)
  40. wusa /uninstall /kb:2952664 /quiet /norestart
  41. echo Did it work? If not, try this manually in an elevated prompt:
  42. echo ^> dism /online /get-packages ^| findstr KB2952664
  43. echo ^> dism /online /remove-package /PackageName:Package_for_KB2952664~31bf3856ad364e35~amd64~~6.1.1.3
  44. echo (for all packages found; this is one fucked up "update")
  45. echo.
  46. echo KB2976978 (Windows 8/8.1 only - Compatibility update for Windows 8.1 and Windows 8)
  47. wusa /uninstall /kb:2976978 /quiet /norestart
  48. echo.
  49. echo KB3021917 (Windows 7 only - Update to Windows 7 SP1 for performance improvements)
  50. wusa /uninstall /kb:3021917 /quiet /norestart
  51.  
  52. echo.
  53. echo KB3022345 (Windows 7 only - Update to Windows 7 SP1 for performance improvements)
  54. wusa /uninstall /kb:3022345 /quiet /norestart
  55.  
  56. echo.
  57. echo KB3068708 (Windows 7 only - Update to Windows 7 SP1 for performance improvements)
  58. wusa /uninstall /kb:3068708 /quiet /norestart
  59.  
  60. echo.
  61. echo KB3075249 (Windows 7/8/8.1 - Update that adds telemetry points to consent.exe in Windows 8.1 and Windows 7)
  62. wusa /uninstall /kb:3075249 /quiet /norestart
  63.  
  64. echo.
  65. echo KB3080149 (Windows 7/8/8.1 - Update for customer experience and diagnostic telemetry)
  66. wusa /uninstall /kb:3080149 /quiet /norestart
  67. echo.
  68. echo * Hiding crapware hotfix KBs in Windows Update, this will take a moment
  69. echo   NOTE: Confirm with Y or A when asked
  70. echo.
  71. powershell -ExecutionPolicy RemoteSigned -NoLogo ^
  72.       -Command "Import-Module %~dp0\PSWindowsUpdate ; Hide-WUUpdate -KBArticleID KB3035583,KB2952664,KB2976978,KB3021917,KB3022345,KB3068708,KB3075249,KB3080149"
  73. echo NOTE: The "H"-status stands for "hidden".
  74. echo.
  75. echo All done, hit Enter to reboot. Thanks for nothing, Microsoft.
  76. pause >nul
  77. shutdown /r /f /t 0
RAW Paste Data
Top