I tried to stop windows update services, and i founded the trigger service's called Windows Update Medic for run again windows update:
I don't need manual or general solution , Just need batch or script for this action.
I need script for registry keys and bat file, and it's not a general computing software.
I founded how to disable Windows Update Medic service in Windows 10
But I need a batch file for simple run.
reg-edit solution is :
1. Open Run and type regedit command press enter. :D
2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WaaSMedicSvc
3. In right pane, double click on Start registry DWORD to modify its Value data.
4. Set the Value data to 4 to disable Windows Update Medic Service. Click OK.
5. Close Registry Editor and reboot to make changes effective.
I need run this way by a simple file. How can I do this? I try it and set a batch file but not work.
For those looking to block Windows Update: please note that blocking just Windows Update Medic is not sufficient. You also have to block other services.
My writeup is here: Come bloccare gli aggiornamenti automatici di Windows 10 (disattivare Windows Update) (it's in italian, sorry) but the gist of it is that there are 3 services that must be disabled.
This is the bat file i use:
echo Windows Update Medic Service
sc stop WaasMedicSvc
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\WaasMedicSvc /v Start /f /t REG_DWORD /d 4
echo.
echo Servizio Windows Update
sc stop wuauserv
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\wuauserv /v Start /f /t REG_DWORD /d 4
echo.
echo Aggiorna il servizio Orchestrator
sc stop UsoSvc
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\UsoSvc /v Start /f /t REG_DWORD /d 4
echo.