Powershell

Windows PowerShell is a Windows command-line shell designed especially for system administrators.

Integration with LogicHub

Connecting with Powershell

To connect to Powershell following details are required:

  • Label: Connection name.
  • Reference Values: Define variables here to templatize integration connections and actions. For example, you can use https://www.{{hostname}}.com where, hostname is a variable defined in this input. For more information on how to add data, see 'Add Data' Input Type for Integrations.
  • Host: The host to run the script on.
  • Credential Entry Type: Credential settings vary based on credential type.
  • Username: The username used to connect to the host.
  • Password: The password used to connect to the host.

Actions with Powershell

Execute Remote Script

Run Powershell script on the remote host.

Inputs to this Action:

  • Connections: Choose a connection that you have created.
  • Use Cred Variable: Use/Pass Credentials in the script. Usage: '$cred' in the script will be replaced with the current session's credentials (PSCredential). Useful in multi-hop remote execution. (Default is 'No').
  • Script Column: The column name with the script to execute. The column-value can contain '$cred' wherever the current session's credentials (PSCredential) are required.

Output of Action:
JSON containing the following items:

  • has_error: True/False
  • error: message/null
  • result: helps execute the script on remote host to monitor the error and status.
{
   "std_out": "",
   "std_err": "",
   "status_code": 0
}

Did this page help you?