1.在 命令提示符窗口中,键入 Start PowerShell,以启动 Windows PowerShell。
2.键入 Install-WindowsFeature UpdateServices ,然后按 Enter 安装 WSUS 角色。
其它信息:
以下 可以使用 Windows PowerShell 安装 WSUS 角色服务。
WID 数据库和 WSUS 服务角色服务是在运行 Install-WindowsFeature UpdateSevices cmdlet 后安装的。
以下 Windows PowerShell cmdlet 可用于在运行 Windows Server Core 的服务器上管理 WSUS 角色。
Add-WsusComputer - 将指定的客户端计算机添加到指定的目标组。
Approve-WsusUpdate — 批准要应用于客户端的更新。
Deny-WsusUpdate— 拒绝更新以进行部署。
Get-WsusClassification - 获取系统中当前可用的所有 WSUS 分类的列表。
Get-WsusComputer - 获取表示客户端计算机的 WSUS 计算机对象。
Get-WsusProduct - 按类别获取 WSUS 上当前可用的所有产品的列表。
Get-WsusServer - 获取 WSUS 更新服务器对象的值。
Get-WsusUpdate - 获取包含有关更新的详细信息的 WSUS 更新对象。
Invoke-WsusServerCleanup - 在指定的 WSUS 服务器上执行清理过程。
Set-WsusClassification - 设置 WSUS 同步的更新分类是启用还是禁用
。Set-WsusProduct - 设置是启用还是禁用表示要同步的更新类别的产品。
Set-WsusServerSynchronization - 设置 WSUS 服务器是从 Microsoft 更新同步,还是从上游服务器和上游服务器属性同步。