windows更新策略组命令 - 智学轩城

windows更新策略组命令

钞季芳头像

钞季芳

2026-02-03 12:03:30

wusa.exe /uninstall /kb:KBxxxxxx /quiet
时间:2023年 地点:任意安装了相应更新包的Windows系统 具体数字:KBxxxxxx代表更新包的KB编号,需替换为实际编号。
这个命令用于卸载指定KB编号的Windows更新。记得替换KBxxxxxx为实际更新编号。

莱仲福头像

莱仲福

2025-01-16 11:02:20

get-wsmaninstance -ComputerName <目标机名> | select -ExpandProperty InstanceId -OutVariable InstanceId Set-WsmanInstance -InstanceId $InstanceId -Enabled true -Transport HTTP, HTTPS -Force Restart-Computer -Force wait-until-service-ready -ServiceName <服务名> -Timeout 120 New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Force Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "AUOptions" -Value 4 Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "WUServer" -Value "<WSUS服务器地址>" Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "WUStatusServer" -Value "<WSUS状态服务器地址>" Restart-Computer -Force

微生伯瑾头像

微生伯瑾

2026-01-25 16:35:44

上周有个客人问我,怎么在Windows系统里设置更新策略组命令,我给他详细解释了一下。这事儿得从几个方面来说。
首先,Windows更新策略组命令主要用于配置和管理Windows系统的更新设置。比如,你可以设置自动更新、手动更新或者禁止更新等。
具体来说,你可以使用以下命令:
1. 显示更新策略:Get-WindowsUpdate 这条命令可以显示当前Windows系统的更新策略配置。
2. 设置自动更新:Set-WindowsUpdate -AutoUpdateMode Auto 这条命令会自动更新Windows系统。
3. 设置手动更新:Set-WindowsUpdate -AutoUpdateMode Manual 这条命令会关闭自动更新,需要手动更新。
4. 禁止更新:Set-WindowsUpdate -AutoUpdateMode NeverCheckForUpdates 这条命令会完全禁止Windows更新。
5. 检查更新:Check-WindowsUpdate 这条命令可以检查可用的更新。
6. 安装更新:Install-WindowsUpdate 这条命令会安装系统上标记为可用的更新。
记得,这些命令都需要在命令提示符或PowerShell中运行。而且,你需要有管理员权限才能执行这些操作。
不过,要注意的是,如果你在商业环境中使用Windows更新策略组命令,可能还需要结合组策略(Group Policy)来实施更复杂的更新策略。这部分内容可能就需要更深入的配置了。
反正你看着办,这些命令应该能满足大部分个人或小型企业用户的需求。我还在想,对于大型企业来说,可能还需要更高级的解决方案。