Run Command Over WinRM
Executes a cmd or PowerShell command on a remote machine using the WinRM protocol.
If a host name is not provided in the connection, the host must be provided in the Host
parameter.
Parameters
Parameter | Description |
---|---|
Command | The command to run. |
Shell | Which type of shell should be used to execute the command. |
Host | Which host to connect to if one is not specified in the connection. Can be an IP or a fully qualified domain name. When using an HTTPS endpoint (encrypted communications), make sure to use the specified format: https://<your-ip-or-domain>:<port-number>/wsman .For example: https://windows-host:5986/wsman .If the provided connection has a host specified, using this parameter results in a error. |