windows server microsoft updates install trigger command line

Hi,

we have arround arround 70 windows servers with 2012r2, windows 2008r2 en windows server 2016.
most of the  servers are virtual on vmware.
we have wsus setup in different locations en servers are downloading only auto aproved security updates.
the servers are set with wsus settings with a group policy and set to download only to give us more control.
when we think its a save update then we will install the update’s by logging on to the server with remote desktop, click on update and install them, then click on reboot the server and watch and pray if its comming back online.

the quistion :
i want to install the already downloaded updates from my computer to a dedicated group of servers and auto reboot when needed , give me a notofication by email or else then the update was sucsesfull.
So there will be no need to logon with remote desktop and an one liner for more servers at once.

whats the best to do this?
many thanks.

or how do you manage a bunch of servers ?
ottenshxAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michael PfisterCommented:
Rob Dunn created a VBS a few years ago. Its still working and should fulfill your requirements
https://community.spiceworks.com/scripts/show/82-windows-update-agent-force-script-email-results-version-2-8

You could create a scheduled task or run it remotely via psexec https://docs.microsoft.com/en-us/sysinternals/downloads/psexec

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hector2016Systems Administrator and Solutions ArchitectCommented:
Hello,

You can use these scripts for each task:

To install the approved updates and reboot if needed

To generate an email with a list of computers and their statuses

It is a common practice to approve updates needed only for a "test" group. Once you have verified that all updates installed fine and there are no side-effects, then approve to the rest of the servers.
ottenshxAuthor Commented:
Thanks. I will find my way with this script.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2016

From novice to tech pro — start learning today.