You can run workflows to invoke an external or custom script on a PowerShell host.
Invoke a PowerShellScript
You can run an existing or custom PowerShell script on a host in the plug-in inventory.
Prerequisites
- Verify that you are logged in to the Automation Orchestrator Client as an administrator.
- Verify that you have a connection to a PowerShell host from the Inventory view.
Procedure
- Navigate to and enter the powershell tag in the workflow search box.
- Locate the Invoke a PowerShell script workflow and click Run.
- On the PowerShell Host tab, select a PowerShell host on which to run the script.
- On the Script tab, in the Script text box, type or paste the PowerShell script that you want to run.
- Click Run.
Invoke an External Script
You can run an external PowerShell script on a host in the plug-in inventory.
External PowerShell scripts are contained in .ps1 files. The .ps1 file that you want to run must be stored on the PowerShell host.
Prerequisites
- Verify that you are logged in to the Automation Orchestrator Client as an administrator.
- Verify that you have a connection to a PowerShell host from the Inventory view.
- Verify that you have access to other .ps1 files that the script might reference.