admin管理员组

文章数量:1591210

1. 用管理员模式打开cmd

这条命令用于列出 Windows安装过的所有更新到一个文本文档中。

wmic qfe get hotfixid >> c:\list.txt

 

2. 用管理员模式打开 c:\list.txt 文本文档,移除第一行代码,保存。

 

3. 继续在cmd中敲入命令

for /f %i in ('type c:\list.txt') do echo wusa /uninstall /kb:%i /quiet /norestart >> c:\uninstall.cmd

 

4. 用记事本打开刚才命令里的 c:\uninstall.cmd ,替换引号内的内容(全部替换"/kb:KB" 为 "/KB:"),保存。

替换后的某行代码示例:

wusa /uninstall /KB:981391 /quiet /norestart

 

5.  运行 c:\uninstall.cmd ,等待运行完毕后重启系统。

验证所有的更新是否都已卸载完毕。

 

本文标签: 新和批量功能updateWindows