WSUS - Client based script to perform updates once a month
Posted on 2012-09-19
I am fully happy with my Group Policies for my servers to automatically download patches but wait for a manual prompt to install.
With a large scale server farm, I want to install these updates once a month only, and potentially have split schedules (i.e. One domain controller one week of the month, another a week later etc.) Of course Microsoft do not offer any facility beyond just once a week, scheduling between Monday to Sunday only.
I want to be able to script a way of getting the WSUS updates to just apply and reboot unattended if required (note the "Install Updates and Shutdown" option is useless on servers as shutting down needs to be REBOOT!)
I would then intend on scheduling via Scheduled Tasks. Has anyone done something like this before and is able to tell me what commands/scripts are required to just do the apply and reboot? Thanks