Skip to end of metadata
Go to start of metadata
Example 1: Disable\Enable windows update
Disable windows update
In order to disable completely windows update, you can set the windows service Windows update(wuauserv) with the following command: Command text : sc stop "wuauserv"
Enable windows update
In order to enable back windows update, you can set the windows service Windows update(wuauserv) with the following command: Command text : sc start "wuauserv"
Example 2: Set User Active Hours [Windows 10]
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.
Note
the Friendly Name field allows you to give a specific name for the command so you can find it easily