Description

Sets the start mode for a specified service

Valid StartModes are:


Syntax

Service_SetStartMode(sServiceName, sStartMode) As Boolean


Parameters

sServiceName (String)

Name of service

sStartMode (String)

Start mode. Service Start Mode


Example

If bStatus Then bStatus = Service_SetStartMode("Service", SSM_Disabled)

Scripting Guidelines


Related functions

Service_Create Service_Exist Service_Start