Page tree
Skip to end of metadata
Go to start of metadata

Description

Sets the start mode for a specified service

Valid StartModes are:

  • Boot: Device driver started by the operating system loader. 
  • System: Device driver started by the *IoInitSystem method. This value is valid only for driver services. 
  • Automatic: Service to be started automatically by the service control manager during system startup. 
  • Manual: Service to be started by the service control manager when a process calls the *StartService method. 
  • Disabled: Service that can no longer be started.


Syntax

Service_SetStartMode(sServiceName, sStartMode) As Boolean


Parameters

sServiceName (String)

Name of service

sStartMode (String)

Start mode. Service Start Mode


Example

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

Scripting Guidelines


Related functions

Service_Create Service_Exist Service_Start

  • No labels