Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

Window update script

Is it possible to write a script / powershell for my Window 2008 / 2012 servers to trigger the Window Update and reboot it automatically ?

Tks
SOLUTION
Avatar of Amish Sanghrajka
Amish Sanghrajka

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AXISHK
AXISHK

ASKER

Actually, the patches has been downloaded but we need to schedule a day each month to install it (which is manually right now).

That's why I'm looking for a script to further automate it, Tks
I'm afraid I can't help with the scripting side but this link may be of use:
https://gist.github.com/jacobludriks/9ca9ce61de251a5476f1

With regards to the GPO, you can force the installation at the specified time of whichever day of the week you want updates to be installed. This will not just download them but will install them and reboot the computer if required.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AXISHK

ASKER

Tks