Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

  • No labels