Type Property (Service class)
Type Property (Service class)
Gets and sets the types of Microsoft Speech Server (MSS) services running on this computer.
obj.Type = integer
Part |
Description |
---|---|
obj |
An instance of the Service class. |
integer |
A unsigned integer that specifies the type of the service. |
Qualifiers
Qualifier |
Value |
Description |
---|---|---|
Values |
"Unknown", "SES", "TAS", "SADS" |
The acceptable values for this property. |
Windows Management Instrumentation (WMI) Script Example
The following code sample lists the properties of all services in the default deployment.
strDeploymentName = "Default" ' Connect to MSS namespace on the specified computer. Set objLocator = CreateObject("WbemScripting.SWbemLocator") Set objNamespace = objLocator.ConnectServer("localhost", "root/MSS") ' Get the WMI deployment object. Set objDeployment = objNamespace.Get("Deployment.Name='" & strDeploymentName & "'") ' Display the service names. WScript.Echo "Services:" & vbCrLf If IsArray(objDeployment.Services) Then For Each service In objDeployment.Services Set objCurrService = GetObject("winmgmts:" & service) WScript.Echo objCurrService.Name WScript.Echo objCurrService.DeploymentName WScript.Echo objCurrService.Type WScript.Echo objCurrService.AppServerUrl Next End If