Set User Active Hours


WIth WIndows 10, you can set a range of time of 12 hours maximum to define the user active hours on your device.


During that time, windows update is not allowed to force or ask a device update. 



1 ) Set the start hour for the current user : reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v ActiveHoursEnd /t REG_DWORD /d 12 /f   (/d between 1 and 24)



2) Set the end hour for the current user : reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v ActiveHoursStart /t REG_DWORD /d 1 /f  (/d between 1 and 24)



3) Enable the active hour feature for the current user : reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v IsActiveHoursEnabled /t REG_DWORD /d 1 /f



4) Save the task in your library to later use : this 3 commands task will set the Active hours time from 12 pm to 1 am.