$cs.Service\_Stop
Syntax
Section titled “Syntax”$cs.Service_Stop(string servicename, int maxTimeout=60000)
Parameters
Section titled “Parameters”servicename
Service name to stop
maxTimeout
Max timeout in milliseconds (default is 60 seconds)
Example
Section titled “Example”if ($cs.Service_Exist('gupdate')){$cs.Service_Stop('gupdate')}#orif ($cs.Service_Exist('gupdate.exe')){$cs.Service_Stop('gupdate.exe',30000)}returns nothing