Home > Blogs > VMware PowerCLI Blog

New VMware Fling: Introducing PowerActions for vSphere Web Client


I am happy to announce a new fling ‘PowerActions for vSphere Web Client’ PowerActions integrates the vSphere Web Client and PowerCLI to provide complex automation solutions from within the standard vSphere management client. In short, we can now run PowerShell/PowerCLI scripts from the Web Client!

How does it work?

PowerActions is a  vSphere Web Client Plugin that allows users to run PowerCLI scripts from the vSphere Web Client interface. These commands are sent to a separate machine running PowerCLI and the PowerActions software. The PowerActions Plugin includes two menu items on the homepage of the Web Client as well as a PowerCLI menubar item when the user right-click’s on objects within the web client (read more below).

What are the Requirements?

The requirements are pretty straightforward and simple:

  • VMware vSphere 5.1 or later (Earlier than 5.1 has not been tested)
  • PowerShell Host Machine
    • Windows 2003 Server or newer (*)/Vista or newer
    • ***.NET framework 4.0*** <— 4.0 IS REQUIRED. Newer versions currently do not work
  • PowerCLI version supporting your current VMware vSphere version
  • Administrative privileges (registering a service with VMware Lookup Service and creating a user for SSO) are required for installation, but not for use of the product.
  • Prior to installation, ensure 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.


In my case I went ahead and deployed a new Windows Server 2008r2 Virtual Machine. I let it run all of the Windows Updates (and then had to uninstall .Net Framework 4.5.1.

I then had to install PowerCLI. I went ahead and installed the latest (vSphere PowerCLI 5.8 release 1).

Screenshot 2014-09-16 12.09.35

***Note*** Make sure to run PowerCLI as administrator after it is installed and run:

Set-ExecutionPolicy RemoteSigned

If the execution policy is not changed from it’s default, the PowerCLI Console in the Web Client will not function. /***Note***

Once I had my virtual machine ready (All of my Prerequisites have been satisfied to this point), I’ll go ahead and run the PowerActions executable.

Screenshot 2014-09-16 12.01.10

The PowerActions interactive install wizard will pop up. Click ‘Next’

Screenshot 2014-09-16 11.59.02

Look at the License Agreement, then check the “I accept the terms in the License Agreement”

Screenshot 2014-09-16 11.59.02

You can go ahead and use the defaults on this page. Click ‘Next’

Screenshot 2014-09-16 11.59.08

On this page you’ll want to add the FQDN of the current machine. In my case, it’s ‘controlcenter.corp.local’.

Screenshot 2014-09-16 11.59.08

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

Screenshot 2014-09-15 21.14.49

If you are using the vCenter Server Appliance (vCSA) you may not have configured your vCenter’s SSO. If that is the case, login to the vCSA appliance (https://yourvcenter:5480″)

You will need to stop the vCenter Server service to setup SSO.

Screenshot 2014-09-16 12.39.51

Navigate to the SSO section and type a new SSO administrator password. Click ‘Save Settings’

Screenshot 2014-09-16 12.40.10

You will receive a warning (Warning: The embedded SSO Server will be completely reinstalled and any locally created users and groups will be lost.) (This is something you should only do if you have not setup SSO previously) Click ‘Ok’.

Screenshot 2014-09-16 12.40.16

Once SSO reinstalls and initializes, navigate back to the Summary section and start the vCenter Server service.

Screenshot 2014-09-16 12.39.51

We can now enter our newly created SSO account info into the lookup service screen of the PowerActions installer. Click ‘Next’.

Screenshot 2014-09-15 21.14.49

click ‘Install’.

Screenshot 2014-09-16 11.59.22

Once the installation finishes we’ll be ready to roll.

Show me the magic!

Now that we’ve completed the installation we can login to the vSphere Web Client. You will now see two new menu items on the left-hand side of the screen. ‘PowerCLI Console’ and ‘PowerCLI Scripts’.

Screenshot 2014-09-16 12.53.11

Clicking on the PowerCLI Console button will bring up just that, a PowerCLI Console for running commands (did I just hear all Mac and Linux users shout for joy??).

Screenshot 2014-09-16 13.12.03

running ‘get-vm’ returns everything it would from run PowerCLI on a windows machine.

Screenshot 2014-09-16 13.10.43

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 scripts. This is a fantastic capability to have a repository of scripts that can be run by you and/or others without duplicating efforts. You can see I’ve already added in a few scripts.

To add a script click the “create a script” icon below the “MyScripts” dropdown.

Screenshot 2014-09-16 13.17.42

The scripts are organized by object. Decide which object the script will be used for (this is important as when you click on a vSphere object, the scripts that appear to run are only those that are linked to that object type).

Screenshot 2014-09-16 13.17.56

Name your script, give it a description, and select either Action or Report (is your script DOING something or Reporting)

Screenshot 2014-09-16 13.18.57

In this screen, we can add our code for this script. Add it below the param line. The $vParam is where the object that is right-clicked in the Web Client is stored. For example (you’ll see in my screenshots below as well) I right-click a cluster ‘Main-CL’ and run the following script on it. Because I right-clicked ‘Main-CL’ that object is than saved in $vParam. $vParam can then be used later on in your script as well.

Screenshot 2014-09-16 13.20.37

The final page allows you to review all the information you’ve entered in this wizard. If you are satisfied, click ‘Finish’

Screenshot 2014-09-16 13.20.45

We can then navigate to specific objects within the Web Client, right-click the object, hover over PowerCLI, and click ‘Execute Script’

Screenshot 2014-09-16 13.21.32

Select the script you want to run, click ‘Ok’.

Screenshot 2014-09-16 13.21.39

The script will run and the results are returned in a nicely formatted manner. you can click on the “Export Page” button in the bottom-right if you want to save your results.

Screenshot 2014-09-16 13.21.59


PowerActions can be downloaded HERE


This article just scratches the surface on the capabilities of PowerActions. I am excited to see where the community takes this and the types of scripts that will start appearing around the web. The ability for Linux and Mac users to now run PowerCLI commands without having to be running on a Windows machine should make many users elated. Give PowerActions a shot and give them your feedback!

For a great video on this new fling check out Alan Renouf’s post on PowerActions HERE

 ***UPDATE 9/30/2014 ***

The fling has now been updated to support PowerShell v2/3 If you wish to uninstall PowerActions from the PowerShell host and from the vSphere Web Client please uninstall from the “Programs and Features” area of the PowerShell Host, select PowerActions and Uninstall.

If you already have PowerActions installed, in order to upgrade, you must first uninstall the current version as per the steps above and then do a fresh install of the new version.

‘My Scripts’ will be preserved for all users. In order to preserve shared scripts, do a backup of the ‘%ProgramData%\VMware\myNGC\Scripts\’ folder.

This entry was posted in Customization, Extensions, General, vCenter and tagged , , , on by .
Brian Graf

About Brian Graf

Brian Graf is a well-known VMware evangelist in the IT community. Over the past 5 years, Brian has done Technical Marketing for PowerCLI Automation and ESXi Lifecycle, Product Management of vCenter Distributed Resource Management features (DRS & HA), and is currently working as a Technical Marketing Manager for VMware Cloud on AWS. Brian is a co-author of the PowerCLI Deep Dive 2nd edition book. He has helped develop VMware certification courses and exams and presents around the world at VMware User Conferences, AWS Summits, Interop, as well as other industry Conferences. Brian is also a Microsoft MVP.

30 thoughts on “New VMware Fling: Introducing PowerActions for vSphere Web Client

  1. Pingback: New VMware Fling: Introducing PowerActions for vSphere Web Client | VMware PowerCLI Blog - VMware Blogs

  2. Pingback: [VMware vSphere 5.5] PowerCLI in the Web Client!

  3. Travis

    This is the coolest thing since animated .gifs and that is high praise.

  4. Rick

    The download link is incorrect. It points back to the blog article.

    The correct download URL is:

  5. Pingback: PowerActions: Nuevo módulo Powershell para el WebClient

  6. Stu

    Couple questions.

    1. Can AD be the SSO authority? If so, do you need a domain admin credential, or just a binding credential?
    2. Can you set permissions on individual objects, like allow users to see shared scripts but not see the console?

  7. Jarrel

    Is it possible use Poweraction or Powershell scripts to clone multiple VM’s simultaneously in VCenter? I have 150 machines that need to be cloned hence i’m looking for a easy automated way to do so instead of having to go through them one after the other.

  8. Jon

    Has their been any updates to when this Fling will support PS v3 and 4. Seeing a lot of errors which are due to the lack of support for ps3.

  9. Pingback: PowerCLI in the vSphere Web Client – PowerActions | Victor Virtualization

  10. Pingback: PowerActions–The PowerCLI Plugin for the vSphere Web Client with UNMAP | Cody Hosterman

  11. Linden

    Any idea if .NET 4.5 will be supported soon?

  12. Max

    Access to PoweCli in Web Client can be disabled for certain users?

  13. Pingback: PowerActions–The PowerCLI Plugin for the vSphere Web Client with UNMAP | Pure Storage Blog

  14. Rajaram

    It’s been a great post 🙂 Thanks for the share

    Solution Architect – Cloud,
    Suranka Technologies | a href=”http://www.suranka.com” target=”_blank” rel=”dofollow”>Suranka

    Blog : http://www.surankaeducation.in

  15. Cory B

    Hello Brian,

    I have successfully deployed this power actions fling, and all has been working great up until a few weeks ago. When I attempt to use it now, I get the following error message:
    [ com.vmware.vim.vmomi.client.exception.ConnectionException: org.apache.http.conn.HttpHostConnectException: Connection to https://vcenter:9091 refused ]

    Long story short, I uninstalled poweractions from my server 2008r2 VM, but when I log into my vsphere web client, it still shows up in the menu. Thinking there may be a dead vcenter extension, I went here: https://your_vc_server/mob, but I am not having any success in locating an obvious extension.

    How do I remove the thing from vsphere web so I can have a fresh install of power actions?

    Thanks for your help!


  16. Pingback: Fling labs: PowerActions for vSphere Web Client | Infrastructure Land

  17. Steve

    I have installed PowerActions and am able to run scripts within the console. My problem is whenever I try to create a script, the GUI shows the following error:

    “There is another script with the same name in the library. Please enter a different name for this script.”

    I don’t have any scripts saved and no matter what I try to name it, I receive the error.

    Please help,


  18. Craig

    Good Morning. Not sure if anyone is still monitoring this? I have been trying to install PowerActions on our vCenter Server but it won’t install.

    I go through the wizard and then am presented with the error ‘powerActions for vSphere Web Client Setup Wizard ended prematurely’.

    I am unsure where to look for specific errors for this add-on? Thanks

    1. Michael White

      I had this happen to me too. I had put my PowerActions host name in the vCenter field.. Maybe check that.


  19. Holi images

    successfully installed
    Thanks Brian Graf

  20. ramadan mubarak 2016

    Thanks for sharing.

  21. Pingback: Free Tool - PowerActions for vSphere Web Client allows Integration of PowerCLI into the Web Client - ESX Virtualization

  22. jio phone registration

    jio hai to sb hai bro

  23. Pingback: Safe Steroids Purchase

  24. johnsmith

    My first visit to your website and I am very glad to read your article. This article is very impressive. Thank you for sharing the article.

  25. mcafee.com/activate

    For a name in security, shoppers don’t have to look any farther than McAfee. McAfee is the worlds computer security company. With almost 3 decades of experience, they’ve seen all of it with regards to hackers, viruses, scams and malware. Since the needs of both of these groups are different, McAfee has set web sites for every category of products up to save time and prevent confusion when shopping. Were checking out among their products, McAfee Total Protection, including comprehensive protection for up to ten computers. Once you find your way you may browse products tailored for Macs, PCs, mobile devices, and one software which covers all the categories.

  26. Happy New Year

    Happy new year to all


Leave a Reply

Your email address will not be published. Required fields are marked *