/
$cs.Service_Stop
$cs.Service_Stop
Syntax
$cs.Service_Stop(string servicename, int maxTimeout=60000)
Parameters
servicename
Service name to stop
maxTimeout
Max timeout in milliseconds (default is 60 seconds)
Example
if ($cs.Service_Exist('gupdate')){$cs.Service_Stop('gupdate')}
#or
if ($cs.Service_Exist('gupdate.exe')){$cs.Service_Stop('gupdate.exe',30000)}
returns nothing
, multiple selections available,
Related content
$cs.Sys_WaitForProcess
$cs.Sys_WaitForProcess
More like this
$cs.Sys_WaitForProcess
$cs.Sys_WaitForProcess
More like this
Service_WaitForStart
Service_WaitForStart
More like this
Service_WaitForStart
Service_WaitForStart
More like this
Service_WaitForStart
Service_WaitForStart
More like this
$cs.Sys_WaitForProcessToExist
$cs.Sys_WaitForProcessToExist
More like this