This method does not work now so do this (only for versions 1709 and later or if you find Windows Update Medic Service):
- Press Win+r, type regedit and hit enter.
- Go to :H KEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsoSvc
3.Double-click the Start value and set its value data to 4 (do not set to any other number).Click OK.
4.Do the same in this path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WaaSMedicSvc
5.Close the registry editor and search for Services app in the search box. Open it.
6.Scroll to the bottom and Find **Windows Update. Right click and open properties.**Go to failure tab and set everything to "Take no Action".Also set Reset fail count after to 9999.
7.Stop Windows Update service and set startup to disabled.
8.Locate Windows Update Medic Serviceand make sure its startup is also disabled.
For more methods see-https://www.wintips.org/how-to-turn-off-windows-10-updates-permanently/