@echo off
@wusa /uninstall /kb:5005569
@wusa /uninstall /kb:5005573
@wusa /uninstall /kb:5005568
@wusa /uninstall /kb:5005566
@wusa /uninstall /kb:5005565
@echo off
rem utf-8
chcp 65001
@echo 卸载完成
@pause

这段代码的核心是wusa命令,Windows Update Standalone Installer,专门用来管理升级包的。

参考:

WUSA.exe
Windows Update Standalone Installer.SyntaxWUSA optionsOptions:/extract    Extract the package contents to a destination folder.This option was removed from Windows 10 due to a security issue, privilege elevationwould allow executables to be extracted to C:\windows\system32 [x]./kb:#####   Uninstall a package led by using its KB number. Use only together with /uninstall./quiet      Run Wusa.exe in quiet mode without user interaction. When the tool runs in quiet mode,it runs without user interaction. The computer restarts if this is required.For example, if the Windows6.0-KB934307-x86.msu file is in the D:\934307 folder,type the following command at a command prompt to install the update package withoutuser interaction:wusa.exe d:\934307\Windows6.0-KB934307-x86.msu /quietWhen you use this switch, the Microsoft Software License Terms do not appear./norestart  Prevent Wusa.exe from restarting the computer.The /norestart switch is ignored if the /quiet switch is not present.If you run Wusa.exe together with these two switches, you must manually restart theoperating system after the installation is complete (if the installation requires a restart)For example, if the Windows6.0-KB934307-x86.msu file is in the D:\934307 folder, typethe following command to install the update package:wusa.exe D:\934307\Windows6.0-KB934307-x86.msu /quiet /norestart/warnrestartWhen this switch is combined with the /quiet switch, Wusa.exe prompts you before itbegins a restart for install and uninstall operations./forcerestartWhen this switch is combined with the /quiet switch, Wusa.exe forcibly closesapplications and then begins a restart./uninstall /kb:#####Uninstall an update./?, /h, /help   View help.
The wusa usage to quietly uninstall an update has been deprecated. (wusa.exe /uninstall /kb:####### /quiet )
The uninstall command with /quiet switch fails with event ID 8 in the Setup event log. Uninstalling updates quietly could be a security risk because malicious software could quietly uninstall an update in the background without user intervention.On sites where WSUS is enabled, you may sometimes need to temporarily revert to Windows Update (0) in place of the WSUS server (1).HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AUValue name: UseWUServer
value = 0 to use a Windows Update server.
value = 1 to use a local server that is running Software Update Services.Restart the Windows Update Service to ensure the changes take effect:NET stop wuauserv
NET start wuauservExamples:C:\> WUSA d:\934307\Windows6.0-KB934307-x86.msu /quietC:\> WUSA D:\934307\Windows6.0-KB934307-x86.msu /quiet /norestartC:\> WUSA /uninstall /kb:934307 /norestart

批处理批量卸载微软补丁相关推荐

  1. win7系统补丁服务器,win7怎么批量卸载系统更新补丁KB? win7快速删除系统补丁的技巧...

    当我们电脑打完所有KB补丁之后,由于不兼容而导致了问题不断,又找不出具体是哪个补丁所引起,那么,我们最笨的方法就是删除卸载之前所有安装的系统更新补丁,如果一个一个去手动卸载,难免会导致手指抽筋.win ...

  2. 批量卸载系统已安装的补丁

    安装更新包或多或少会影响电脑运行速度.也就是说通常安装的补丁越多,系统的完善性越好,运行速度就会降低一些.有时安装补丁后,由于不兼容而导致了问题不断. 所以,有时候我们需要删除卸载之前所有安装的系统更 ...

  3. rpm批量卸载所有带有Java的文件

    安装之前先检查一下系统有没有自带open-jdk命令:rpm -qa |grep javarpm -qa |grep jdkrpm -qa |grep gcj如果没有输入信息表示没有安装.如果安装可以 ...

  4. mysql报196271错误_微软补丁造成MYSQL及Windows经常连接失败解决方法

    [数据库闪断]微软补丁KB967723造成MySQL频繁无法连接的解决办法 微软补丁KB967723造成MySQL频繁无法连接,刷新即恢复正常的解决方法 (Can not connect to MyS ...

  5. 教你如何在linux 下批量卸载

    教你如何在linux 下批量卸载 最 近本来想在linux 下配置 JDK 6.0 用来开发java,然后遇到很多麻烦,一开始的时候屁颠屁颠的到SUN的网站去下载个 JRE 的bin 文件,这个文件比 ...

  6. (备忘)卸载微软自带输入法

    下载完office2010以后,对其自带的输入法不习惯,一直要切换输入法,很是不方便. 方法1:原网址:https://jingyan.baidu.com/article/48206aeafcdc2b ...

  7. 微软补丁星期二:修复多个严重 RCE 和IE 0day

     聚焦源代码安全,网罗国内外最新资讯! 编译:奇安信代码卫士团队 微软在3月补丁星期二发布了89个修复方案,修复位于IE浏览器和 Edge 浏览器.Office 和 Azure 中的多个漏洞,含可用于 ...

  8. 批量用title的内容命名html文件,使用批处理批量复制文件并重命名

    使用批处理copy批量复制指定目录下(包括子目录)的老师,能否使用copy命令帮忙写个批处理实现以下功能: 复制指定目录下(包@echo off & title 备份文件 By 依梦琴瑶 :: ...

  9. 批处理批量替换文本内容,用bat代码全篇替换txt文本文件中指定字符信息

    批处理批量全篇替换txt文本文件中指定字符信息,修改三个参数后即可使用,话不多说直接上代码: @echo off setlocal EnableDelayedExpansion set path_st ...

  10. 金蝶K/3产品各版本引入/引出Excel文件时出现意外错误的提示,或未正确安装Excel的提示。微软补丁解决方案!(转)

    转自金蝶服务号 [1]问题回顾 2017年10月份起,微软陆续发布了各版本操作系统补丁,但更新补丁后,会导致金蝶K/3产品各版本引入/引出Excel文件时出现意外错误的提示,或未正确安装Excel的提 ...

最新文章

  1. 不同版本Eclipse对JDK版本要求
  2. 利用SoapUI 测试web service的方法介绍
  3. 电子信息工程班徽设计_蜻蜓AI说专业:与5G时代息息相关的电子信息工程专业怎么样?...
  4. python中遍历字典判断是否存在_python中如何判断值在不在字典中
  5. 计算机风扇维修,教你简单修理电脑散热风扇
  6. 使用Azure Pipelines从GitHub发布NuGet包
  7. html vue分页,Vue.js bootstrap前端实现分页和排序
  8. 【HDU - 1134 】Game of Connections(JAVA大数加法,卡特兰数)
  9. java调用shell脚本并传递参数
  10. springclould项目启动报错Could not resolve placeholder
  11. javaweb学习总结五(内省、beanUtils工具包)
  12. dll 文件创建与使用
  13. 细胞自动机 c语言程序,Processing精彩例程之细胞自动机
  14. AS3开发必须掌握的内容
  15. 机械设计(机电)_简要问答_复习笔记
  16. JSONObject.fromObject - JSON与对象的转换
  17. 奇迹单机版服务器修改,大天使之剑奇迹网页游戏 一键服务端单机版/架设教程/修改方法...
  18. IDM下载器Windows系统是最快的下载工具
  19. Linux简单介绍(入门)
  20. 国内与国际控制学科知名会议

热门文章

  1. java二路归并排序算法_java二路归并排序示例分享
  2. 基于php的超市仓库管理系统
  3. 【机器学习】CART决策树原理及python实现
  4. 基于单片机的电子秤(数码管)系统设计(#0416)
  5. Vitis下Linux应用程序开发流程
  6. Ubuntu18安装AWVS,然后在破姐次数限制,就问你能不能忍住不赞?
  7. 压缩算法之算术编码浅析与实现
  8. 【微信页面】移动端微信页面禁止字体放大
  9. matlab标准数据,Matlab数据标准化实现
  10. 单片机入门必备知识,c语言基础来了