Why install a program when I can just use what's built into Windows?
Anyway, it worked like a charm. I completely forgot it was patch Tuesday until remote logged into my Windows 7 Pro machine and had a notification that updates were available. I checked my Windows 10 machine and it had downloaded updates too. The reboot task had been re-created and scheduled to reboot just after 10pm (my active hours are 10am to 10pm), but it had already been disabled by my task by the time I checked. I re-enabled it and I made sure I was at the machine it was still enabled when it ran. The first time the reboot task runs is when it pops up the notification, and if you're using the machine, it re-schedules it for an hour later. After that, it no longer pops up a notification and either reboots if your system is idle or re-schedules it an hour later if it's not. I watched it the rest of the night, put the system to sleep and kept watch the next day to see what it does.
The reboot task kept getting re-enabled, I'm assuming by Windows Update because I checked the last run time on the other tasks and did not see any that were doing it. My task kept the reboot task disabled before it could run though. I thought there might be a problem if the reboot task got enabled and I put my system to sleep that it would wake up to install updates and reboot like it did once before. It seems that "on idle" tasks get run when you put the system to sleep, so it wasn't a problem. I reduced my tasks run time to 4 minutes idle because the reboot task seems to trigger a reboot if your machine is idle for 5 minutes.
If you want to do this yourself, use this XML code to import the task into Windows Task Scheduler.
Copy it and save it to a .xml file ("Disable Windows Update Reboot Task.xml" for example), then in Task Scheduler, click Action, Import Task and select the file you just saved.
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<Author>NJC2 on TenForums.com</Author>
<URI>\Disable Windows Update Reboot Task</URI>
<Arguments>/change /tn \Microsoft\Windows\UpdateOrchestrator\Reboot /disable</Arguments>
Or create it yourself using the following:
- Create new task
- General Tab: Change User or Group to SYSTEM
- Triggers Tab: On Idle
- Actions Tab: Start program: C:\Windows\System32\schtasks.exe, Add arguments: /change /tn \Microsoft\Windows\UpdateOrchestrator\Reboot /disable
- Conditions Tab: Start the task only if the computer is idle for: 4 minutes, Wait for idle for: Do not wait