State Property

State Property

Gets a string that specifies the current state of the service.

obj.State = string

Part

Description

obj

An instance of either the TAS or SES class.

string

A string that specifies the current state of the service.

Qualifiers

Qualifier

Value

Description

ValueMap

"Stopped", "Start Pending", "Stop Pending", "Running", "Continue Pending", "Pause Pending", "Paused", "Unknown", "Not Installed"

These are the values stored in the Registry.

Values

"Stopped", "Start Pending", "Stop Pending", "Running", "Continue Pending", "Pause Pending", "Paused", "Unknown", "Not Installed"

These values are set by the administrator through the Microsoft Speech Server (MSS) snap-in for Microsoft Management Console (MMC). They then serve as an index to the values in ValueMap.

Windows Management Instrumentation (WMI) Script Example

myComputer = "localhost"

' Use a Locator object to connect to WMI.
Set locator = CreateObject("WbemScripting.SWbemLocator")
Set namespace = locator.ConnectServer(myComputer, "root/MSS")

' Get the TAS instance.
Set tel = namespace.Get("TAS=@")

' Display the current value.
WScript.Echo tel.State

' Set the property value.
tel.State = "Stopped"

' Update the class instance in WMI.
tel.Put_

Member Of

SES class

TAS class