简体   繁体   English

是否可以通过 Powershell 在多个远程服务器上安装 Windows 更新?

[英]Is it possible to install Windows Updates on multiple, remote servers through Powershell?

I am a network admin with very little experience coding or using Powershell.我是一名网络管理员,几乎没有编码或使用 Powershell 的经验。 About once a month I have to check for and install Windows updates on about 25 servers.大约每月一次,我必须在大约 25 台服务器上检查并安装 Windows 更新。 I've played around with Powershell in hopes of handling this task in a more automated fashion but get hung up getting the servers to actually install the updates after checking.我玩过 Powershell,希望以更自动化的方式处理此任务,但在检查后让服务器实际安装更新时挂断了电话。 I apologize for posting such a noob question, but can anyone let me know if this is possible and if so, show me the ways of your dark arts?我为发布这样一个菜鸟问题而道歉,但任何人都可以让我知道这是否可能,如果可以,请告诉我你的黑暗艺术方式吗?

WSUS will require you to install the components and setup the profiles etc. If you have a large number of servers on a single network, that is your best bet for delivering the content. WSUS 将要求您安装组件并设置配置文件等。如果您在单个网络上有大量服务器,那么这是交付内容的最佳选择。

If you just want to be able to schedule and run the updates on specific remote hosts, there is a ton of stuff already available that will do this and you just need to come up with your implementation of scheduling the updates for what hosts.如果您只想能够在特定的远程主机上安排和运行更新,那么已经有很多可用的东西可以做到这一点,您只需要提出为哪些主机安排更新的实现。 I did this exact thing for a prior employer for 10k plus servers world wide using a web app for the owners to schedule the updates and then back end workflow to perform the approval requests, installs, logging, etc..我使用 web 应用程序为全球 10k 多台服务器的前雇主做了这件事,让所有者安排更新,然后后端工作流程执行批准请求、安装、日志记录等。

PowerShell Gallery is a good start. PowerShell 图库是一个好的开始。 Here is a post that walks you through using PSWindowsUpdate .这是一篇指导您使用 PSWindowsUpdate的帖子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM