As we know that PowerCLI is the best tool for automating management and configuration of VMware vSphere. So what is PowerActions?
I would simply answer it as the interface that allows running PowerShell/PowerCLI scripts from the Web Client; it is basically a vSphere Web Client Plug-in that allows users to run PowerCLI scripts from the vSphere Web Client interface.
Now let’s have a look on working and prerequisites:
The requirements are pretty straightforward and simple: We need to have separate machine running PowerCLI and the PowerActions software.
Ø VMware vSphere 5.1 to 6.0 (Earlier than 5.1 has not been tested)
Ø PowerShell Host Machine
Ø Windows 2003 Server or newer (*)/Vista or newer
Ø NET 4.0 or 4.5
Ø PowerShell v1, v2, v3, or v4
Ø PowerCLI version supporting your current VMware vSphere version
Ø Administrative privileges are required for installation, but not for use of the product. (registering a service with VMware Lookup Service and creating a user for SSO – Single Sign ON)
Ø Before installation make sure that the PowerShell Host machine and the machine hosting the VMware Lookup Service are synced via the same time source, otherwise cryptic error messages may appear.
PowerActions Part 2: Installation of PowerActions.
I my case I have used Windows Server 2008r2 Virtual Machine.
Then I have to install PowerCLI. I went ahead and installed the latest version of PowerCLI.
***Note*** Make sure to run PowerCLI as administrator after it is installed and run:
If the execution policy is not changed from its default, the PowerCLI Console in the Web Client will not function. /***Note***
Once virtual machine ready (All of my Prerequisites have been satisfied to this point), I’ll go ahead and run the PowerActions executable.
You can go ahead and use the defaults on this page. Click ‘Next’
Important: On this page you’ll want to add the FQDN of the current machine. In my case, it’s ‘controlcenter.corp.local’.
On this screen, you will need to enter the Lookup Service URL, SSO username, and SSO Password. The Lookup Service URL will be https://yourvcenter:7444/lookupservice/sdk
Once the installation finishes we’ll be all set.
PowerActions Part 3: PowerActions walk through.
We can login to the vSphere Web Client. Here we can see two new menu items on the left-hand side of the screen. ‘PowerCLI Console’ and ‘PowerCLI Scripts’.
Clicking on the PowerCLI Console button will bring up just that, a PowerCLI Console for running commands.
running ‘get-vm’ returns everything it would from run PowerCLI on a windows machine.
If we go to the PowerCLI Scripts menu item it brings us to a script repository. This area allows users to save personal scripts as well as setup shared script.
PowerActions can be downloaded HERE
This article just acts as pointer on PowerActions capabilities.
For the deeper dive I would recommend to visit HERE