IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 游戏开发 -> 批处理批量卸载微软补丁 -> 正文阅读

[游戏开发]批处理批量卸载微软补丁

@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.

Syntax
      WUSA options

Options:
   /extract    Extract the package contents to a destination folder.
               This option was removed from Windows 10 due to a security issue, privilege elevation
               would 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 without
               user interaction:

               wusa.exe d:\934307\Windows6.0-KB934307-x86.msu /quiet

               When 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 the
               operating 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, type
               the following command to install the update package:

               wusa.exe D:\934307\Windows6.0-KB934307-x86.msu /quiet /norestart

   /warnrestart
               When this switch is combined with the /quiet switch, Wusa.exe prompts you before it
               begins a restart for install and uninstall operations.

   /forcerestart
               When this switch is combined with the /quiet switch, Wusa.exe forcibly closes
               applications 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\AU

Value 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 wuauserv

Examples:

C:\> WUSA d:\934307\Windows6.0-KB934307-x86.msu /quiet

C:\> WUSA D:\934307\Windows6.0-KB934307-x86.msu /quiet /norestart

C:\> WUSA /uninstall /kb:934307 /norestart

  游戏开发 最新文章
6、英飞凌-AURIX-TC3XX: PWM实验之使用 GT
泛型自动装箱
CubeMax添加Rtthread操作系统 组件STM32F10
python多线程编程:如何优雅地关闭线程
数据类型隐式转换导致的阻塞
WebAPi实现多文件上传,并附带参数
from origin ‘null‘ has been blocked by
UE4 蓝图调用C++函数(附带项目工程)
Unity学习笔记(一)结构体的简单理解与应用
【Memory As a Programming Concept in C a
上一篇文章      下一篇文章      查看所有文章
加:2022-03-21 21:25:48  更:2022-03-21 21:27:09 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2025年1日历 -2025/1/16 18:46:45-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码