Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cls
- echo.
- echo Windows 10 Crapware Hotfix Uninstaller 0.1 by @seitics
- echo NO WARRANTY, EITHER EXPRESS OR IMPLIED. USE AT YOUR OWN RISK.
- echo.
- echo Uninstalls and hides the following hotfixes in conjunction with
- echo advertisements of Windows 10 on Windows 7/8/8.1 computers:
- echo KB3035583 KB2952664 KB2976978 KB3021917
- echo See: http://www.ghacks.net/2015/04/17/how-to-remove-windows-10-upgrade-updates-in-windows-7-and-8/
- echo.
- echo Requirements
- echo.
- echo + Must be run from an elevated prompt
- echo + Working Internet connection (to reach Microsoft Windows Update)
- echo + PSWindowsUpdate in sub-directory of same name relative to this script
- echo Download: https://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc
- echo.
- at > nul
- if not %ERRORLEVEL% EQU 0 (
- echo Error: Need administrative privileges, aborting.
- goto :eof
- )
- echo Press Ctrl-C to cancel, Enter to continue
- pause >nul
- cd /d %~dp0
- echo.
- echo * Killing GWX.exe
- taskkill /f /im GWX.exe /T
- echo.
- echo * Listing any installed crapware hotfix KBs
- powershell get-hotfix -ErrorAction SilentlyContinue -id KB3035583,KB2952664,KB2976978,KB3021917
- echo * Uninstalling Microsoft crapware, hang tight
- echo.
- echo KB3035583 (Windows 7/8/8.1)
- wusa /uninstall /kb:3035583 /quiet /norestart
- echo.
- echo KB2952664 (Windows 7 only)
- wusa /uninstall /kb:2952664 /quiet /norestart
- echo Did it work? If not, try this manually in an elevated prompt:
- echo ^> dism /online /get-packages ^| findstr KB2952664
- echo ^> dism /online /remove-package /PackageName:Package_for_KB2952664~31bf3856ad364e35~amd64~~6.1.1.3
- echo (for all packages found; this is one fucked up "update")
- echo.
- echo KB2976978 (Windows 8/8.1 only)
- wusa /uninstall /kb:2976978 /quiet /norestart
- echo.
- echo KB3021917 (Windows 7 only)
- wusa /uninstall /kb:3021917 /quiet /norestart
- echo.
- echo * Hiding crapware hotfix KBs in Windows Update, this will take a moment
- echo NOTE: Confirm with Y or A when asked
- echo.
- powershell -ExecutionPolicy RemoteSigned -NoLogo ^
- -Command "Import-Module %~dp0\PSWindowsUpdate ; Hide-WUUpdate -KBArticleID KB3035583,KB2952664,KB2976978,KB3021917"
- echo NOTE: The "H"-status stands for "hidden".
- echo.
- echo All done, hit Enter to reboot. Thanks for nothing, Microsoft.
- pause >nul
- shutdown /r /f /t 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement