Enable No auto-restart with logged on users for scheduled automatic updates installations policy in group policy editor
No auto-restart with logged on users for scheduled automatic updates installations prevents automatic restart when a user is signed in. If a user schedules the restart in the update notification, the device will restart at the time the user specifies even if a user is signed in at the time. This policy only applies when Configure Automatic Updates is set to option 4-Auto download and schedule the install.
Source:
https://learn.microsoft.com/en-us/windows/deployment/update/waas-restart#delay-automatic-reboot
Try the Task Scheduler method.
Click Start and type Task Scheduler
Navigate to Task Scheduler Library >> Microsoft >> Windows >> UpdateOchestrator
To disable automatic reboots right-click on Reboot and select disable.
Then be sure change the permissions. Should be set to Read & Execute.
Also, You can try Windows 10 Reboot Blocker:
https://udse.de/reboot-blocker/
A simple Windows-Service that will update this "active hours" timeslot in the background.
-------------------------------------------------------------------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
The mentioned product is owned and operated by a third party. Microsoft has no control regarding to the product's performance and reliability.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.