WMI Object Methods

Applies to TestComplete 15.68, last modified on October 16, 2024

The WMI object contains the following methods:

Method List

Name Description
ConnectToComputer Connects to the WMI services on the specified computer.
CreateProcess Launches a new process.
GetEnvironmentVariable Returns the value of the specified environment variable.
GetServiceState Returns the current state of the specified service.
PostDrivesInfo Uses WMI services to retrieve information about hard drives and saves this information to the test log.
PostDrivesInfo Uses WMI services to retrieve information about the CPU(s) and saves this information to the test log.
PostEnvironmentVariableInfo Uses WMI services to retrieve information about environment variables and saves this information to the test log.
PostEventsInfo Uses WMI services to retrieve information about events that occurred on the computer specified by the ComputerName property and saves this information to the test log. The number of logged events is specified by the MaxEventCount property.
PostInstalledAppsInfo Uses WMI services to retrieve information about the installed applications and saves this information to the test log.
ProcessExists Checks if the specified process is running.
RestartComputer Restarts the computer specified by the ComputerName property.
WaitForComputer Waits until the WMI connection to the specified computer is established during a timeout period.
WaitForProcessExit Delays the test execution until the specified process is completed.
WaitForServiceState Delays the test execution until the service goes into the specified state.

See Also

WMI Object

Highlight search results