Content-Type: text/x-zim-wiki Wiki-Format: zim 0.4 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 ', "", @SW_HIDE) works fine.