To prevent it I have found a simple solution - disable "Reboot" task. But everything turned out to be more difficult. Windows still reboot my laptop (the screenshot below shows that task started even it disabled ("Отключено" in Russian)).
Therefore I decide to write a powershell script to prevent it once and for all.
What the script does:
- Disables automatic reboot of Windows 10.
- Turn on notifications about downloaded updates.
- Does not disable Windows Update.
- Prevents external devices from waking the computer. I did this because my laptop could wake up with the lid closed from accidentally pressing the mouse button.
- Disables all Scheduled Tasks "Allow Wake Timers". To check what tasks are could wake your PC run the cmdlet (with administrator rights): "Get-ScheduledTask | where {$_.settings.waketorun}".
It works!
Tested on Windows 10 Pro 1803 (17134.523).
Tips:
- Run the script after each major update of Windows 10.
- Run the script from Powershell with administrators rights.
- Before starting the script run "set-executionpolicy Unrestricted -Confirm:$false -Scope CurrentUser -Force".
Let me know if this helps you.
No comments:
Post a Comment