Contents

Method

RunWmiStaticMethod

ModuleNativeServices
LibraryCore
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.

AsUser (string; optional; default 1E.Client service user) Windows only: The "domain\user" (down-level logon) account name that the Agent will attempt to impersonate on the local machine.

If this parameter is absent the command will be executed in the Tachyon Agent process's user context.

It is not an error if the specified user is not currently logged on (and this includes accounts that are not even defined). In this case execution is deemed successful but the method does nothing and returns no data.

The specified user must be currently logged on and running explorer.exe (Windows Explorer).

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.

Available from v5.3.

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