5.5.2
Table Of Contents
- Using VMware vCenter Orchestrator Plug-Ins
- Contents
- Using VMware vCenter Orchestrator Plug-Ins
- Introduction to Orchestrator Plug-Ins
- Configure the Orchestrator Plug-Ins
- Using the vCenter Server Plug-In
- Configuring the vCenter Server Plug-In
- vCenter Server Plug-In Scripting API
- Using the vCenter Server Plug-In Inventory
- Access the vCenter Server Plug-In Workflow Library
- vCenter Server Plug-In Workflow Library
- Batch Workflows
- Cluster and Compute Resource Workflows
- Custom Attributes Workflows
- Datacenter Workflows
- Datastore and Files Workflows
- Datacenter Folder Management Workflows
- Host Folder Management Workflows
- Virtual Machine Folder Management Workflows
- Guest Operation Files Workflows
- Guest Operation Processes Workflows
- Power Host Management Workflows
- Basic Host Management Workflows
- Host Registration Management Workflows
- Networking Workflows
- Distributed Virtual Port Group Workflows
- Distributed Virtual Switch Workflows
- Standard Virtual Switch Workflows
- Resource Pool Workflows
- Storage Workflows
- Storage DRS Workflows
- Basic Virtual Machine Management Workflows
- Clone Workflows
- Linked Clone Workflows
- Linux Customization Clone Workflows
- Tools Clone Workflows
- Windows Customization Clone Workflows
- Device Management Workflows
- Move and Migrate Workflows
- Other Workflows
- Power Management Workflows
- Snapshot Workflows
- VMware Tools Workflows
- Using the Configuration Plug-In
- Using the vCO Library Plug-In
- Using the SQL Plug-In
- Using the SSH Plug-In
- Using the XML Plug-In
- Using the Mail Plug-In
- Using the Net Plug-In
- Using the Enumeration Plug-In
- Using the Workflow Documentation Plug-In
- Using the HTTP-REST Plug-In
- Using the SOAP Plug-In
- Using the AMQP Plug-In
- Using the SNMP Plug-In
- Using the Active Directory Plug-In
- Using the Dynamic Types Plug-In
- Configuring and Using the Multi-Node Plug-In
- Using the PowerShell Plug-In
- Using the PowerShell Plug-In Inventory
- Configuring the PowerShell Plug-In
- Running PowerShell Scripts
- Generating Actions
- Passing Invocation Results Between Actions
- PowerCLI Integration with the PowerShell Plug-In
- Sample Workflows
- Access the PowerShell Plug-In API
- Working with PowerShell Results
- Examples of Scripts for Common PowerShell Tasks
- Troubleshooting
- Index
Running PowerShell Scripts
You can run workflows to invoke an external or custom script on a PowerShell host.
Invoke a PowerShell Script
You can run an existing or custom PowerShell script on a host in the plug-in's inventory.
Prerequisites
n
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to a PowerShell host from the Inventory view.
Procedure
1 Click the Workflows view in the Orchestrator client.
2 In the workflows hierarchical list, select Library > PowerShell and navigate to the Invoke a PowerShell
script workflow.
3 Right-click the Invoke a PowerShell script workflow and select Start workflow.
4 Select a PowerShell host on which to run the scrpt.
5 In the Script text box, type or paste the PowerShell script that you want to run.
6 Click Submit to run the workflow.
Invoke an External Script
You can run an external PowerShell script on a host in the plug-in's inventory.
External PowerShell scripts are contained in .ps1 files. The .ps1 file that you want to run must be located on
the PowerShell host.
Prerequisites
n
Verify that you are logged in to the Orchestrator client as an administrator.
n
Verify that you have a connection to a PowerShell host from the Inventory view.
n
Verify that you have acces to other .ps1 files that the script might reference.
Procedure
1 Click the Workflows view in the Orchestrator client.
2 In the workflows hierarchical list, select Library > PowerShell and navigate to the Invoke an external
script workflow.
3 Right-click the Invoke an external script workflow and select Start workflow.
4 Select a PowerShell host on which to run the scrpt.
5 In the Name text box, type the filename of the external .ps1 script that you want to run.
NOTE If the .ps1 file is not in the default folder, you must type the absolute filepath. You can use
system environment variables to specify script paths. For example, $env:HOMEPATH\test1.ps1.
6 In the Arguments text box, type the script arguments.
The valid syntax is the same as that used in the PowerShell console.
7 Click Submit to run the workflow.
Using VMware vCenter Orchestrator Plug-Ins
120 VMware, Inc.