Stop and Start Services in a script
https://www.autoitscript.com/forum/topic/134959-stop-and-start-services-in-a-script/
https://www.autoitscript.com/forum/topic/4591-startstop-a-service/
RegWrite("HKLM\System\CurrentControlSet\Services\{servicename}\Start".........
:::::::: ***** :::::
regdelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentControlSet\Services\xxxxxxxxx")
regdelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentControlSet\Enum\Root\xxxxxxxxxxxxx")
where the x are service name.
To stop the service :
RunWait(@ComSpec & " /c " & 'net stop <service>', "", @SW_HIDE) works fine.
Om ZIM.smarken.net
Backlinks: Teknik 1wiki:Windows:AutoIT