Do this:
Open you notepad and past the code below:
for /f "tokens=1 delims=:" %%a in ('time/t') do set currentHour=%%a
if %currentHour% gtr 17 goto after6pm
if %currentHour% gtr 5 goto after6am
set /a startHour = %currentHour%+18
set /a endHour = %currentHour%+6
goto SetActiveHours
:after6pm
set /a startHour = %currentHour%-6
set /a endHour = %currentHour%-18
goto SetActiveHours
:after6am
set /a startHour = %currentHour%-6
set /a endHour = %currentHour%+6
:SetActiveHours
set "activeHours=%startHour%,%endHour%"
reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v ActiveHoursStart /t REG_DWORD /d %startHour% /f
reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v ActiveHoursEnd /t REG_DWORD /d %endHour% /f
save the notepad as noreboot.bat in some place, like c:/windows/
open the task scheduler : press the windows key + R at the same time and in the prompt type:
taskschd.msc
this will open the task scheduler
in the right panel click in create task
name it as you will in the Gerneral tab
In the Triggers tab create a new one with the contents below:
Daily, repeat task every 1 hour for duration at: 1 day
in Actions click in new with the action Start a program and in the browse locate your previous saved bat file, in this example, noreboot.bat.
ok for all and there you have a task changing your work hours every hour.