EVILWez Posted August 27, 2015 Posted August 27, 2015 Hi Guys I'm new to the forum and I've seen a lot of neat things here.I have been searching for a method to list a number of KB Windows Update files, search for them, provide a yes or no to finding them on the system and then having those once removed. I'n other words Find a Specific KB package update of my choice.If found Remove it ( State the package found )If not move to the next one.If it doesn't find anything, then it must tell me nothing found (for example " System Clean" ) But it must all run on a bat file. I found something interesting, but I'm not quick sure on how to apply it to my idea.. http://www.msfn.org/board/topic/152020-batch-script-for-windows-software-updates-installation/ I've found that the followind windows update have Telementry software and would liek them to be removed.Several optional updates bring Windows 10 telemetry features for windows 7, 8 and 8.1.These updates are a privacy concern.Concerned KB are:- KB3075249 for W8.1 and W7 : http://support.microsoft.com/kb/3075249- KB3080149 : http://support.microsoft.com/kb/3080149Additional updates which should also be avoided:- KB2505438- KB2670838 (Windows 7 only)- KB2952664- KB2976978 (Windows 8 only)- KB3021917- KB3035583- KB3075249 Hope I've made some sense.
jaclaz Posted August 27, 2015 Posted August 27, 2015 Hope I've made some sense.Some. Batch in itself is not particularly well suited, but powershell might do:https://gallery.technet.microsoft.com/scriptcenter/Uninstall-security-update-76f2dcb7http://blogs.technet.com/b/heyscriptingguy/archive/2009/03/12/how-can-i-remove-a-microsoft-update.aspxhttp://trevorsullivan.net/2011/05/31/powershell-removing-software-updates-from-windows/http://techibee.com/powershell/powershell-uninstall-windows-hotfixesupdates/1084http://ben0xa.com/removing-kbs-with-powershell-psexec-and-wusa/https://johntaurins.wordpress.com/2014/08/22/powershell-uninstall-all-windows-updates/ jaclaz
EVILWez Posted August 27, 2015 Author Posted August 27, 2015 Hey Jaclaz. I've seen all those and yes, powershell would be the best way.I totally agree with you. Unfortunately its not something I can send an "end user" .It would only bring more harm than good. I was thinking of adding it to a batch file.Then converting it into a simple exe. Basically then deploying it on the network.Yes, there are better ways to doing this, but I also have user who site with 3G as communication into the next work.So, I would simple mail it and ask the user to run it. But I do sincerely appreciate your reply. I was thinking of perhaps using wmic to find it then getting wusa to uninstall it.Since i hardly program/develop things in .bat I'm kind of domb found at the moment. I could simple do a -@echo offecho[echo Welcome To windows telementry package Removerecho ----------------------------------------------echo[wusa /uninstall /KB:3075249 /quiet /norestartwusa /uninstall /KB:3080149 /quiet /norestartwusa /uninstall /KB:2505438 /quiet /norestartwusa /uninstall /KB:2670838 /quiet /norestartwusa /uninstall /KB:2952664 /quiet /norestartwusa /uninstall /KB:2976978 /quiet /norestartwusa /uninstall /KB:3021917 /quiet /norestartwusa /uninstall /KB:3035583 /quiet /norestartwusa /uninstall /KB:3075249 /quiet /norestartPause&ExitI feel that its tooooo bleh, doesn't have that professional touch. need a more, echo " searching system "echo file found " KB3075249 "wusa /uninstall /KB:3075249 /quiet /norestartecho " Update removed "echo " system restarting "shutdown -f -r -t 00pause and exit. if nothing was found.echo " System clean " giving both feed back to the user and doing its task...hmmmm Hope I make sense...
jaclaz Posted August 27, 2015 Posted August 27, 2015 Unfortunately its not something I can send an "end user" .It would only bring more harm than good. I was thinking of adding it to a batch file.Then converting it into a simple exe. Why not? If you cannot write yourself a compiled .exe (like AutoIt or similar) you should NOT use .exe's at all, so-called "batch compilers" usually tend to be incompatible with anything but extremely simple batches, unless (like a few are) they are nothing more than a converter to a SFX kind of archive, example:http://www.f2ko.de/en/b2e.php But - just to point out how a "normal" SFX might do - here are some hints about using the 7-zip one (original or the modifeid one):http://www.msfn.org/board/topic/153160-trying-to-make-an-installer-with-7-zip/ This said, :https://gallery.technet.microsoft.com/PS2EXE-Convert-PowerShell-9e4e07f1 But if all you need/want is what you posted, WHAT is the problem? Are you looking for someone to write a "professional batch" file? (BTW Yes, I do have the required special license to post oximorons on the board )? jaclaz
EVILWez Posted August 27, 2015 Author Posted August 27, 2015 (edited) jaclaz Hahahah.You just made my day, I almost LOL'd off my chair. " (BTW Yes, I do have the required special license to post oximorons on the board )? " hmmm"Are you looking for someone to write a "professional batch" file? "Yeah why not ? Maybe someone has had the same idea as me, who knows the world is full of ideas and experiences. It's just a matter of time. I always say.Thank you for all your URL they've been quite the read...-Bows- Thank you Sensei Edited August 27, 2015 by EVILWez
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now