r/Windows10•
Harrod200

Controlling Windows Updates reliably

I've been toying with the idea of trying to control WU with a bit more granularity. My current idea the below vbs;

http://pastebin.com/yftaBZpZ

The theory is;

  1. Configure WU to install immediately

  2. Set two scheduled events (for my purposes, Wednesday 0900 and 1500, the day after patch Tuesday and while I'm at work) to run the above with highest privs, with perm to wake up the device

  3. Disable the Windows Update service

At 0900, the script will run, enabling the update service and triggering an immediate /detectnow. It then sits and waits for an hour (should be long enough to install updates) before checking to see if Windows is asking for a reboot. If it is, it reboots, if not, it just ends. At 1500 the script runs again, this time stopping and disabling the update service to prevent issues with updating while the PC is in use

My laptop is currently up to date, so I can't do a whole lot of testing, but I believe this would ensure that Windows only updates during a specified window, as oppose to whenever it damned well wants, and gets the reboot (if required) out of the way without user interaction.

Any input/suggestions?

Posted Oct 14, 2015, 7:51 PM UTC

36
Loading comments…