Skip to main content

Run Command Over WMI

Executes a cmd or PowerShell command on a remote machine using the WMI protocol.

If a host name is not provided in the connection, the host must be provided in the Host parameter.

Parameters

ParameterDescription
CommandThe command to run.
ShellWhich type of shell should be used to execute the command.
HostWhich host to connect to if one is not specified in the connection. Can be an IP or a fully qualified domain name. Do not include the protocol path. If the provided connection has a host specified, using this parameter results in a error.
Working DirectoryWhen a working directory is selected, the filesystem state is preserved across steps that use this directory. Files and changes in the chosen directory persist across steps, ensuring continuity. For more information, refer to the Create Working Directory action documentation for guidance on setting up and selecting working directories.