Services Property

Services Property

Gets and sets a list of Service class instances.

objInstances = Deployment.Services

Part

Description

objInstances

The collection of all manageable Service class instances in the deployment.

Remarks

The Deployment class uses the Server class to store and retrieve the types of services (Speech Engine Services (SES), Telephony Application Services (TAS), or Speech Application Deployment Service (SADS)) on any given computer.

Windows Management Instrumentation (WMI) Script Example

The following code sample lists the services in the default deployment.

strDeploymentName = "Default"

' Connect to MSS namespace on the specified computer.
Set objLocator = CreateObject("WbiScripting.SWbiLocator")
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
    Next
End If

Member Of

Deployment class