Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Windows 10 Nagware Uninstaller


  • Please log in to reply
3 replies to this topic

#1 JohnnyJammer

JohnnyJammer

  • Members
  • 1,118 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:QLD Australia
  • Local time:04:09 PM

Posted 29 March 2016 - 05:55 PM

This could probably go to the programming section but because its related to Windows 7 i thought here would be a good spot.

I wrote a small script that checks for the 3 main annoying Win10 nagware updates pushed my MS. Some of these where tricky, dirty tactics embedded in windows IE11 updates as well.

 

Anyway code below, save as Win10Nagware_Uninstaller.bat

@ECHO OFF
TITLE Windows Nagware uninstaller
CLS
ECHO *************************************************************
ECHO This will check for GWX Nagware Windows10 Updates           *
ECHO Script by JohnnyJammer                                      *
ECHO *************************************************************
SET /p target=What is the name of the Target computer:
ECHO 1.KB3035583 (Annoying one that came with IE 11 Update)
ECHO 2.KB2952664 (Is inherited from number 1 KB above)
ECHO 3.KB3123862
CHOICE /C 123 /M "uninstall which patch:"
IF ERRORLEVEL 3 GOTO kb3
IF ERRORLEVEL 2 GOTO kb2
IF ERRORLEVEL 1 GOTO kb1
:KB1
SET kb1=3035583
ECHO Getting KB%kb1% info from %target%
    wmic /node:%target% qfe where hotfixid="KB%kb1%" get /all /format:list
SET kbchoice=%kb1%
GOTO UNINSTALL
:KB2
SET kb2=2952664
ECHO Getting KB%kb2% info from %target%
    wmic /node:%target% qfe where hotfixid="KB%kb2%" get /all /format:list
SET kbchoice=%kb2%
GOTO UNINSTALL
:KB3
SET kb3=3123862
ECHO Getting KB%kb3% info from %target%
    wmic /node:%target% qfe where hotfixid="KB%kb3%" get /all /format:list
SET kbchoice=%kb3%
GOTO UNINSTALL
:UNINSTALL
CHOICE /C YN /M "Continue with uninstall of KB%kbchoice%?"
IF %ERRORLEVEL% EQU 2 GOTO FINISH
ECHO Now uninstalling KB%kbchoice%
    wmic /node:%target% process call create "powershell wusa /uninstall /kb:%kbchoice% /quiet /norestart"
PING -n 60 127.0.0.1 > %TMP%\PING
ECHO Checking for removall
wmic /node:%target% qfe get hotfixid | find /i "KB%kbchoice%"
:FINISH
DEL %TMP%\PING
ECHO Done.......................................

Edited by JohnnyJammer, 29 March 2016 - 05:57 PM.


BC AdBot (Login to Remove)

 


#2 jcgriff2

jcgriff2

  • BSOD Kernel Dump Expert
  • 1,109 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Jersey Shore
  • Local time:02:09 AM

Posted 30 March 2016 - 12:32 PM

Nicely written batch script.

 

I am unable to test as I'm running Windows 8.1 at the moment.

 

Regards. . .

 

jcgriff2


Microsoft MVP 2009-2015
Microsoft Windows Insider MVP 2018 - Present

#3 JohnnyJammer

JohnnyJammer
  • Topic Starter

  • Members
  • 1,118 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:QLD Australia
  • Local time:04:09 PM

Posted 30 March 2016 - 04:45 PM

yeh it is handy, you could create this to be a startup script for a GPO and create 3 separate lines in the one batch file by taking out eh /node:%target% and just manually adding the /kb: in the powershell wusa uninstall line.

 

Its a constant battle now trying to stop them distributing though WSUS because they re publish the same KB on win7 machines even on corporate networks now!

Simply put, the board of directors doesnt want win10 lol.



#4 Niweg

Niweg

  • Members
  • 802 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:US of A
  • Local time:01:09 AM

Posted 01 April 2016 - 11:09 AM

 I've installed the GWX Control Panel on 31 systems.  It works great, keeps the Windows nags out, and haven't seen any problems with it.  I agree that MS has aggraved a whole lot of us with this nagging and trying to force so many of us into Windows 10.  I wish someone would apply the pound of cure to them, but at least we can apply the ounce of prevention right now.


Make regular full system backups or you'll be sorry sooner or later.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users