VMware PowerCLI 10 released

 In Product updates, Software, VMware, vSphere basics

PowerCLI was around for years. At the beginning VMware used name vSphere PowerCLI but over the years more and more modules ware added to support not only vSphere but other products. So, with this release the name changed to VMware PowerCLI.

PowerCLI is a strong automation tool allowing you to manage your vSphere environment with CLI based commands and powerful scripts. Sometimes it is more flexible to write a quick script to do some repetitive work then do such thing in GUI all the time. It also reduces manual errors, because once the script is done it will always do the same and you can’t forget some important step in the configuration.

I am using OSX for my daily work and it was a bit struggle there. In the past I had to use Windows-based machine as a jump server with PowerCLI installed, because there was no support for OSX at all (well, it was possible to install PowerCLI, but the function was quite limited). Not anymore! With PowerCLI 10 OSX is fully supported as well.

Today, we release PowerCLI 10.0.0. This release adds support for PowerShell Core 6 which can be run on Linux and Mac OS systems. There are also a handful of VMGuest related cmdlets which have been removed from the release. Their functionality can be replaced with the usage of Invoke-VMScript. Lastly, there have been several corrections. Many of which are thanks to our amazing community for bringing them to our attention.

What’s new in PowerCLI 10?

Let’s have a look at the list of available modules

VMware.DeployAutomation
VMware.ImageBuilder
VMware.PowerCLI
VMware.VimAutomation.Cis.Core
VMware.VimAutomation.Cloud
VMware.VimAutomation.Common
VMware.VimAutomation.Core
VMware.VimAutomation.HA
VMware.VimAutomation.HorizonView
VMware.VimAutomation.License
VMware.VimAutomation.Nsxt
VMware.VimAutomation.PCloud
VMware.VimAutomation.Sdk
VMware.VimAutomation.Srm
VMware.VimAutomation.Storage
VMware.VimAutomation.StorageUtils
VMware.VimAutomation.Vds
VMware.VimAutomation.Vmc
VMware.VimAutomation.vROps
VMware.VimAutomation

How to install PowerCLI 10

As said, Power CLI is multiplatform, so you can install on Windows, Linux or OSX which makes it much more useful than in the past.

The easiest way to install is directly from PowerShell itself

Install-Module -Name VMware.PowerCLI -Scope CurrentUser


After the installation is done we can check the modules

Get-Module VMware.PowerCLI -ListAvailable


And that’s it…well, almost. Microsoft recently changed the behavior how the certificate handling is done so if you use self-signed certificates you won’t be able to connect to your ESXi server. But there is a quick fix

Set-PowerCLIConfiguration -InvalidCertificateAction Ignore


Also, do not dorget to change execution policy if you won’t to run you existing scripts

Set-ExecutionPolicy RemoteSigned

And that’s it!

OSX

If you are running OSX you can have a look at the video where I have performed the fresh install as well. The approach is similar to Windows but there are few prerequisites like Homebrew or CASK that needs to be installed first.

There are still some limitations in terms of avalibale modules, but it is much better then in the past. Those limitations are based on PowerShell Core 6.0 so I assume once Microsoft release new PowerShell Core more modules will be avilabel.

VMware.VimAutomation.Cis.Core
VMware.VimAutomation.Common
VMware.VimAutomation.Core
VMware.VimAutomation.Nsxt
VMware.VimAutomation.Vds
VMware.VimAutomation.Vmc
VMware.VimAutomation.Sdk
VMware.VimAutomation.Storage
VMware.VimAutomation.StorageUtility

OSX installation video

 

Don’t forget to check the official documentation as well as other pages related to PowerCLI

Enjoy!

Showing 2 comments
  • marcperlmichel
    Reply

    It”s just time to replace this OSX shit with GNU/Linux where diagnostic tools are working fine

    • Martin Gavanda
      Reply

      Depends on your preferences. I have to say that after I have switched to OSX it is always pain to work on Windows aggain. And I was never fan of Linux on my workstation or Laptop.

Leave a Comment

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt