WindowsExecutor Operator
The WindowsExecutor operator executes a command on a target Windows machine using WinRM.
The command can be anything that runs on a Windows Command Prompt.
Operator arguments
Name | Type | Value Restrictions | Required | Default | Description |
---|---|---|---|---|---|
| String |
| Yes |
| The command to be executed on the remote machine |
| Object | It should have a structure like the one described here below | No |
| Information relative to the target machine onto which the command has to be executed |
| String | It should match the name of an existing Component of the System under test | No |
| The name of the Component whose properties can be used as arguments of the operator |
host
structure and arguments
host
structure and argumentsHere follows the structure of the host
argument
with its arguments:
Name | Type | Value Restrictions | Required | Default | Description |
---|---|---|---|---|---|
| String |
| Yes, if the Component whose name is defined in | https | The protocol to use to connect to the Windows machine with WinRM |
| String | Valid FQDN or ip address | Yes, if the Component whose name is defined in | - | Windows machine’s hostname |
| Number | 1≤ | Yes, if the Component whose name is defined in | 5863 | WinRM port |
| String | - | Yes, if the Component whose name is defined in | /wsman | The path where WinRM is listening |
| String |
| Yes, if the Component whose name is defined in | - | User login (domain or local) |
| String | - | Yes, if the Component whose name is defined in | - | Login password |
| String |
| Yes, if the Component whose name is defined in | ntlm | The authentication method to use against Windows machine |
| Boolean |
| Yes, if the Component whose name is defined in | False | Whether or not validate the server certificate |
| String | A valid CA certificate | Yes, if the Component whose name is defined in | - | The CA that is required to validate the servier certificate |
| Integer | Must be greather then 0 | No |
| The amount in seconds after which the execution of the command is considered failed Notice that the ouput of the command doesn’t reset the timeout. |
| Integer | Must be greather then | No |
| The amount of seconds to wait before an HTTP connect/read times out |
Get operator arguments from component
component
The component
argument can refer to a Component by name and use its properties as the arguments of the operator. In case the mapped arguments are already provided to the operator, there is no override.
Here is an example of a component that overrides the host
and the command
arguments:
Examples
Execute a dir command with explicit host information
Execute a dir command with host information taken from a Component
Last updated