Service Class
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
The Service class contains members that specify the Speech Server service on any given computer.
The following syntax is simplified from Managed Object Format (MOF) code.
Syntax
class Service
{
????????string Path;
????????string DeploymentName;
????????string Type;
????????string Name;
};
Methods
The Service class has no methods.
Properties
The Service class has the following properties.
Path
Data type: string
Specifies the fully qualified domain name (FQDN) of the computer on which the service resides.
This property is not exposed in the Speech Server Administrator console and can only be configured with a WMI script.
DeploymentName
Data type: string
Specifies the name of the deployment to which the service belongs, which equates to the Name property of the Deployment class.
This property is not exposed in the Speech Server Administrator console and can only be configured with a WMI script.
Type
Data type: string
Specifies the type of Speech Server service running on this computer. Speech Server is the only valid type of service.
This property is not exposed in the Speech Server Administrator console and can only be configured with a WMI script.
Name
Data type: string
Specifies the unique name that identifies the server where this service resides.
This property is not exposed in the Speech Server Administrator console and can only be configured with a WMI script.
Remarks
References to instances of the Service class are stored in the Services property of the Deployment class.
Windows Management Instrumentation (WMI) Script Example
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & _
"\root\MSSV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Service",,48)
For Each objItem in colItems
Wscript.Echo "-----------------------------------"
Wscript.Echo "Service instance"
Wscript.Echo "-----------------------------------"
Wscript.Echo "DeploymentName: " & objItem.DeploymentName
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Type: " & objItem.Type
Wscript.Echo "Path: " & objItem.Path
Next
Requirements
Server: Requires Microsoft Windows Server 2003 with Speech Server
Namespace: Included in \root\mssv2