Joshua Baker
Joshua Baker

Reputation: 1

Powershell script install Windows updates associated with a list of IDs

I have a number of client computers which need many Windows updates installed, but I have limited access to the computers. The Windows Update interface often says there are no updates available, then I manually check for them, and 1 or 2 hours later it has finally collected all 150 important updates that are missing (for instance). But I have difficulty getting access to these machines while people are working on them.

I already have a list of required updates for each of these computers. I'd like to write a script that could turn a list of update IDs into an UpdateCollection which could be downloaded and installed with an UpdateSession. Can this be done?

Edit: I did some more research. Really what I need to be able to do is create an IUpdateCollection object that contains IUpdate objects that are associated with the update IDs I have. If I can get that, I can download and install the updates easily.

Upvotes: 0

Views: 880

Answers (1)

Dewi Jones
Dewi Jones

Reputation: 825

This script will force install all updates instead of a list, if you want to install specific updates then the only way to get around this is use something like SCCM to push updates and such, but heres the link.

https://gallery.technet.microsoft.com/scriptcenter/Force-Install-Updates-on-ef821f9a

Upvotes: 0

Related Questions