Category Archive: PowerCLI

VMware PowerCLI 12.3 Released

Quick note to let you know that VMware PowerCLI version 12.3 was released last week, to be more specific April 8th. I trust most of you knows that PowerCLI is built is a tool built on Windows PowerShell and used for command line management and or scripting purposes. The new release is 12.3 is a …

Continue reading »

VMware PowerCLI 11.4.0 Released

Just a quick note to let you know that VMware just released a new version of PowerCLI which is tool built on Windows PowerShell and used for command line management or scripting purposes. The new release is 11.4.0 and this dot release comes with the following enhancements: Support for Horizon View 7.9 Storage module – …

Continue reading »

VMware PowerCLI 11.2.0 Released

Just a quick note to let you know that VMware just released VMware PowerCLI 11.2. This dot release comes with quite a few improvements: VMware HCX – New module NSX-T Policy Services support OAuth based connectivity support to vCenter Server – Right now only for GovCloud instances of VMware Cloud on AWS Storage module cmdlets updated …

Continue reading »

VMware PowerCLI 11.0.0 Released

Just a quick note to let you know that VMware just released VMware PowerCLI 11.0.0. In my opinion the most valuable updates are support for: Horizon View 7.6 vSphere 6.7 Update 1 vCloud Director 9.5 NSX-T 2.3 There are many more updates and changes in this release such as: New Security module Cmdlets for Host …

Continue reading »

Install Microsoft PowerShell Core 6.0.1 and VMware PowerCLI 10.0.0 On macOS

Really good news for all Linux & MacBook users out there. A while back Microsoft released Microsoft PowerShell for Linux and MacOS and yesterday, 2018.02.28, VMware released VMware PowerCLI 10.0.0, formerly known as vSphere PowerCLI, and it also supports both platforms. To be able to run VMware PowerCLI on your MacBook you first need to …

Continue reading »

Disable ESXi host firewall ports using PowerCLI

Updated 2017-07-06 to match ESXi 6.5 FW Rule names One thing i do for the majority of my vSphere implementations, today and previous over the years, has been to disable ESXi firewall ports not being used. There are at least a few, not always the same though, ports that will never be used no matter …

Continue reading »

Upgrade ESXi 5.5 to ESXi 5.5 U1 using HP image fails

Before i start an upgrade i usually run two commands just to verify what build number my ESXi host currently uses and what image my ESXi host currently uses: vmware -v – shows the build number  esxcli software profile get – shows the image name and in my case the result before the upgrade was: …

Continue reading »

vSphere VM vCPU to ESXi host pCPU core allocation

There has been quite a lot of discussion regarding resource utilization and resource allocation in vSphere environments lately. There are a lot of tools around doing analysis (some better than others) of your environment and gives suggestions if you need to e.g.: Add more resources (CPU, RAM, Disk, Network) to your vSphere cluster. Down size …

Continue reading »

Create multiple VMs from existing vSphere VM using PowerCLI

I recently published the blog post “Create multiple VMs using PowerCLI” and as i mentioned in the post i thought the next request would be a PowerCLI script to create multiple VMs from an existing vSphere virtual machine (VM). It just took a few days before the request reached my email inbox. I actually received a few …

Continue reading »

Create multiple VMs using PowerCLI

A couple of days ago i received a request from a customer asking for a PowerCLI script to create VMs. There were a couple of requirements for the script. Specify the number of VMs to be created. The VMs must be powered on after the creation. The VMs must be placed on all ESXi hosts …

Continue reading »

ESXi host VMkernel.Boot.terminateVMOnPDL configuration using PowerCLI

I have already written a blog post about how you can configure the ESXi host  setting disk.terminateVMOnPDLDefault in vSphere version 5.1. You can find that blog post here. I have received a couple of questions about how to configure the setting, called VMkernel.Boot.terminateVMOnPDL, in ESXi 5.5 so i decided to put together a blog post about it. …

Continue reading »

ESXi 5.1 VMFS HeapSize configuration using PowerCLI

There are a few of my customer still running vSphere 5.1 U1 and one of them reported an issue related to the VMFS Heap Size (VMFS3.MaxHeapSizeMB) configuration a few days ago. Keep in mind that my customer upgraded to U1 from a previous vSphere 5.1 version meaning that the old VMFS3.MaxHeapSizeMB was retained at 80 MB …

Continue reading »

Backup the virtual machine configuration file (.vmx) using PowerCLI

For those of you using a backup and restore solution based on a software backup and restore client installed in each virtual machine it is a good idea to secure the virtual machine configuration file, the .vmx file. Backing up the data from within the virtual machine is not enough for making a restore process …

Continue reading »

Backup vSphere vNetwork Distributed Switches using PowerCLI

A few weeks ago a customer asked me how to automate the export of the vSphere vNetwork Distributed Switches (VDS) configuration. Their existing routine included to make a manual export of the VDS configuration whenever a VDS change was implemented including adding or removing a VDS port group. In the vSphere Web Client you can …

Continue reading »

Use PowerCLI to compare virtual machine configured and installed guest operating system

When i presented the result from a vSphere health check the other day my costumer was quite surprised that a few of his virtual machines had an installed guest operating system that didn’t match the guest operation system configured in vSphere. Several other blogs covers the importance of having a configured guest operating system in vSphere …

Continue reading »

Update vSphere DRS rules using PowerCLI

I was asked by one customer last week to create a script that adds virtual machines to a vSphere DRS group, “VM DRS Group”, based on virtual machine guest operating. My customer runs vSphere 5.1 and a licensing issue was the underlying cause of the request. My customer have two vSphere clusters running 16 ESXi …

Continue reading »

Older posts «