Install the latest PowerCLI on offline systems

If you keep your PowerCLI up to date you may have noticed that since version 6.5.1 you can’t download the installer on the VMware website anymore. This being because VMware moved the distribution of PowerCLI to Powershell Gallery using the cmdlets Install-Module, Uninstall-Module and... [Read More]

All your VMs in RDCManager in 20 seconds

[ Update 201808/17 ] - Added 3389 TCP port check on VM IP(s) - Set the first one the responds as hostname and "NO-RDP-RESPONSE" if none does. - Added TCPCheckTimeout parameter to Add-RDCManVM function to configure the time it takes for the TCP port check to time... [Read More]

Meltdown & Spectre - Check if your ESXi servers are patched

[Update 20/03/2018] VMware now recommends to apply the patch for Hypervisor-Assisted Guest Mitigation. According to them the performance impact is less than 2%. I haven’t patched yet and I will wait for the feedback of early adopters. The start of the year has been so ridiculous with patches... [Read More]

Metro cluster partial DCI failure

In this article I would like to cover a failure scenario that I recently dealt with and that I suspect is maybe not that common for several reasons. The environment is made of 2 sites in a metro cluster sharing a virtualised storage over a multiplexed fiber. Half of the... [Read More]

Easily run PowerCLI commands as jobs

Overview Start-PowerCLIJobs.ps1 Running commands as jobs is pretty mainstream in Powershell. A simple “Start-Job” or “Invoke-Command -AsJob” will do the trick. However, when PowerCLI is involved it is not as straightforward. If you try to run a command that requires to be connected to a vCenter you will... [Read More]

NSX DFW rule - lost access to vCenter

I was playing with NSX recently and testing the distributed firewall (DFW) that allows for east-west firewalling, aka micro-segmentation. All was going well when I disconnected my brain for a second and added a rule “deny all all” (Yes I know…). Following that moment facepalm I obviously lost access to... [Read More]

Docker in vSphere Part 1 - Introduction

Docker in vSphere : Part 2 - Install and configure vDVS (to come) Overview I am starting a series of articles about running containers on PhotonOS in a vSphere environment with VMware’s implementation of the docker storage driver called “vSphere Docker... [Read More]

Generate a random password in Powershell

I recently needed to generate random password for an PowerCLI automation project. However, although there is a Get-Random cmdlet, it is limited to generate random numbers. Not good enough for a password, so I decided to write my own. This function allows you to choose what types of characters to... [Read More]

Automatically evacuate a host without DRS

Like many other places I believe, our non-prod hosts run on vSphere Standard instead of Enterprise Plus for its lower price. The price is great, but what isn’t is that DRS isn’t available. Which means every time a host needs to be put in maintenance mode you have to do... [Read More]