wmi

package
v3.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: MIT, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Auth exposes WMI authentication constructors.

Functions

func NewClient

func NewClient(call goja.ConstructorCall, runtime *goja.Runtime) *goja.Object

NewClient constructs a WMI client.

Constructor: constructor(target: string, auth: any)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a GoExec-backed WMI execution client.

func (*Client) Call

func (c *Client) Call(namespace string, className string, method string, argsJSON string, opts interface{}) map[string]interface{}

Call invokes a WMI class method and returns the serialized method response.

func (*Client) Command

func (c *Client) Command(command string, opts interface{}) map[string]interface{}

Command runs a Windows command line through WMI Win32_Process.Create.

func (*Client) Proc

func (c *Client) Proc(executable string, args string, opts interface{}) map[string]interface{}

Proc runs an executable and argument string through WMI Win32_Process.Create.

func (*Client) SetOptions

func (c *Client) SetOptions(opts interface{})

SetOptions updates default execution options for future client calls.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL