SAP Help Home SAP Intelligent RPA Help Portal SAP Intelligent RPA Community

Module - WMI Client

Collection of functions introspecting some key elements of the system such as execution environment, powered by Windows Management Instrumentation (WMI).

Activities

WMI Query

Perform a WMI query. For more information about WMI queries (WQL), see Microsoft Website: https://docs.microsoft.com/en-us/windows/win32/wmisdk/wmi-start-page


Technical Name Type Minimal Agent Version
query asynchronous WIN-3.24

Input Parameters:

Name Type Attributes Default Description
section string mandatory WMI section to search FROM
parameters Array. optional Array of SELECT attributes. If this is not defined, all attributes are retrieved.
where string optional WHERE string

Output Parameters:

Name Type Description
wmiResults Array. WMI query results.

Sample Code:

const computer = await irpa_core.wmi.query('Win32_ComputerSystem', ['Name', 'Model', 'Description', 'CurrentTimeZone', 'Roles']);