Skip to main content

1E SDK

NativeServices.RunWmiStaticMethod

Module

NativeServices

Method

RunWmiStaticMethod

Library

Core

Action

Run a WMI class method.

Parameters

Namespace (string; optional, default "root\cimv2"): The WMI namespace to use, e.g. "root\ccm".

Class (string): The class, e.g. "SMS_Client".

Method (string): The name of the method to run.

Note

For AsUser to work with TIMS/TAIL/Loadgen there must either be a 1E.Client.exe in the same directory as the TIMS/TAIL/Loadgen executable or an installed 1E Client.

Additional parameters for the specific method call. Their names are prefixed with "Param_".

Return values

The output, if any, from the method.

Example

NativeServices.RunWmiStaticMethod(Namespace:"root\\cimv2", Class:"Win32_Process", Method:"Create", Param_Commandline:"notepad.exe");

Platforms

  • Windows

Notes