Service Control Commands - McAfee MANAGEMENT EDITION 2.5 Administrator's Manual

Hide thumbs Also See for MANAGEMENT EDITION 2.5:
Table of Contents

Advertisement

Service control commands

W
Command name
STARTSERVICE
STOPSERVICE
CREATESERVICE 5
DELETESERVICE
SERVICEEXISTS
NOTE: [..] Indicates optional parameters and switches.
Min #
params
1
1
1
1
Using MCScript to Update Your Script Files
Usage, examples, and comments
STARTSERVICE
<SERVICE_NAME>
[<TIMEOUT_SECS>] /DEPENDENT
/DEPENDENT: Starts dependent services.
<TIMEOUT_SECS>: Time to wait for service to
start.
<SERVICE_NAME>
STOPSERVICE
[<TIMEOUT_SECS>] /DEPENDENT
/DEPENDENT: Stops dependent services.
<TIMEOUT_SECS>: Time to wait for service to
start.
<NAME> <DISPLAY_NAME>
CREATESERVICE
<TYPE> <START_TYPE> <EXE_NAME>
[<ACCOUNT_NAME>]
[<ACCOUNT_PASSWORD>]
<TYPE>: 'WIN32_OWN' | 'WIN32_OWN_I' |
'WIN32_SHARE' | 'WIN32_SHARE_I' |
'KERNEL_DRIVER' | 'FILE_SYS_DRIVER'
<START_TYPE>: 'BOOT' | 'SYSTEM' | 'AUTO' |
'DEMAND' | 'DISABLED'
Example:
CREATESERVICE !ServiceName!
!DisplayName! WIN32_OWN_I AUTO
"!INSTALLDIR!\AFILE.EXE"
IF CREATESERVICE != FALSE
STARTSERVICE !ServiceName!
<SERVICE_NAME>
DELETESERVICE
<SERVICE_NAME>
SERVICEEXISTS
Administrator's Guide
295

Advertisement

Table of Contents
loading

Table of Contents