I suddenly had problems with my Windows 10 workstation at home. It would wake up & resume at random times from standby. This only started in the last 2 (?) months while it worked flawlessly before… so I suspect a Windows update introduced this issue. After digging around for a while I narrowed down the culprit to a maintenance task, more specifically "UpdateOrchestrator" and it's "reboot" task. It should have been fairly easy to remove the ability to wake up the computer from that task… but for whatever reasons it would give me the message that I don't have the permissions to change the settings on this tasks.
After some digging online I found other people with the same problem and a solution by using NSudo. Then the next problem was that the tasks was also getting re-enabled even when I disabled it, so I had to find a fix for that too.
So here are the steps that I took to let my trusty Windows 10 workstation sleep at night again 😉
• Open Task Scheduler and Task Scheduler library export the task "Microsot/Windows/UpdateOrchestrator/Reboot" as a XML file to c:\temp\reboot.xml
• Edit the file with a text editor and set "WakeToRun" to "false"
• Download NSudo from http://www.majorgeeks.com/files/details/nsudo.html
• use Nsudo to launch cmd.exe as TrustedInstaller with all privileges
• in that command window run:
• SCHTASKS /Delete /TN "Microsoft\Windows\UpdateOrchestrator\Reboot"
• SCHTASKS /Create /XML c:\temp\reboot.xml /TN "Microsoft\Windows\UpdateOrchestrator\Reboot"
• SCHTASKS /Change /TN "Microsoft\Windows\UpdateOrchestrator\Reboot" /DISABLE
• icacls "%WINDIR%\System32\Tasks\Microsoft\Windows\UpdateOrchestrator\Reboot" /inheritance:r /deny "Everyone:F" /deny "SYSTEM:F" /deny "Local Service:F" /deny "Administrators:F"
That last step prevents the task from getting enabled/reset again.
Hope this helps others!