daily pastebin goal
90%
SHARE
TWEET

Windows 10 Crapware KB3035583 KB2952664 KB2976978 KB3021917

a guest Jun 2nd, 2015 11,314 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 Hotfix Uninstaller 0.1 by @seitics
  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
  8. echo advertisements of Windows 10 on Windows 7/8/8.1 computers:
  9. echo KB3035583 KB2952664 KB2976978 KB3021917
  10. echo See: http://www.ghacks.net/2015/04/17/how-to-remove-windows-10-upgrade-updates-in-windows-7-and-8/
  11. echo.
  12. echo Requirements
  13. echo.
  14. echo + Must be run from an elevated prompt
  15. echo + Working Internet connection (to reach Microsoft Windows Update)
  16. echo + PSWindowsUpdate in sub-directory of same name relative to this script
  17. echo   Download: https://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc
  18. echo.
  19.  
  20. at > nul
  21. if not %ERRORLEVEL% EQU 0 (
  22.         echo Error: Need administrative privileges, aborting.
  23.         goto :eof
  24. )
  25.  
  26. echo Press Ctrl-C to cancel, Enter to continue
  27. pause >nul
  28.  
  29. cd /d %~dp0
  30.  
  31. echo.
  32. echo * Killing GWX.exe
  33. taskkill /f /im GWX.exe /T
  34.  
  35. echo.
  36. echo * Listing any installed crapware hotfix KBs
  37. powershell get-hotfix -ErrorAction SilentlyContinue -id KB3035583,KB2952664,KB2976978,KB3021917
  38.  
  39. echo * Uninstalling Microsoft crapware, hang tight
  40.  
  41. echo.
  42. echo KB3035583 (Windows 7/8/8.1)
  43. wusa /uninstall /kb:3035583 /quiet /norestart
  44.  
  45. echo.
  46. echo KB2952664 (Windows 7 only)
  47. wusa /uninstall /kb:2952664 /quiet /norestart
  48. echo Did it work? If not, try this manually in an elevated prompt:
  49. echo ^> dism /online /get-packages ^| findstr KB2952664
  50. echo ^> dism /online /remove-package /PackageName:Package_for_KB2952664~31bf3856ad364e35~amd64~~6.1.1.3
  51. echo (for all packages found; this is one fucked up "update")
  52.  
  53. echo.
  54. echo KB2976978 (Windows 8/8.1 only)
  55. wusa /uninstall /kb:2976978 /quiet /norestart
  56.  
  57. echo.
  58. echo KB3021917 (Windows 7 only)
  59. wusa /uninstall /kb:3021917 /quiet /norestart
  60.  
  61. echo.
  62. echo * Hiding crapware hotfix KBs in Windows Update, this will take a moment
  63. echo   NOTE: Confirm with Y or A when asked
  64. echo.
  65. powershell -ExecutionPolicy RemoteSigned -NoLogo ^
  66.         -Command "Import-Module %~dp0\PSWindowsUpdate ; Hide-WUUpdate -KBArticleID KB3035583,KB2952664,KB2976978,KB3021917"
  67.  
  68. echo NOTE: The "H"-status stands for "hidden".
  69. echo.
  70. echo All done, hit Enter to reboot. Thanks for nothing, Microsoft.
  71. pause >nul
  72.  
  73. shutdown /r /f /t 0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top