Category: PowerShell

Posted in PowerShell vCenter Virtual Machines

Let’s talk about snapshots! Snapshots Explained!

A VMware snapshot is a point-in-time copy of the virtual machine’s state, including its virtual disk files and configuration. Snapshots are used to capture the…

Continue Reading
Posted in PowerShell

PowerShell to bulk remove VIBs from multiple ESXi hosts (putting hosts in MM mode beforehand)

During my last upgrade from vSphere 6.7 to vSphere 7.0 on one of my clusters, I come across the issue with VIBs. Of course, the…

Continue Reading
Posted in PowerShell

PowerCLI and PowerShell cheat sheet

Here are commands, every vSphere admin should know: List of available interfaces and physical network cards (vmkernel + vmnic): Adding another interface (vmkernel to vMotion)…

Continue Reading
Posted in PowerShell

A general system error occurred: Exceeded the maximum number of permitted snapshots” error when creating a virtual machine snapshot

Before upgrading my NSX-T nodes I wanted to take a snapshot. To my surprise, I was not able to do so, as I received an…

Continue Reading
Posted in PowerShell

PowerShell to ensure TLS1.2 is enabled

Today I will show you how to ensure that TLS1.2 is enabled. I will write a short script to perform a check and remediate if…

Continue Reading
Posted in PowerShell

Let’s create a local user for ESXi and add the new account to the exclusion list for Lockdown Mode

Today we will use PowerCLI to create a local user for ESXi hosts and exclude that user from Lockdown Mode. The challenge is to communicate…

Continue Reading
Posted in PowerShell

PowerCLI 12.7 is here and packed with a lot of new features!

The new version of PowerCLI has been released. The release has number 12.7 and is packed with new and exciting features. Along with improving the…

Continue Reading
Posted in PowerShell

Power CLI Error: Invalid server certificate. Use Set-PowerCLIConfiguration to set the value for the InvalidCertificateAction option

It may happen that once you want to connect to your vCenter with PowerCLI, you may receive an error about invalid server certification. It just…

Continue Reading
Posted in PowerShell Security Advisory

How to determine if my virtual machines have a USB controller attached and how to remove it?

In the wake of recent published VMSA-2022-0004 admins can wonder how to determine if Virtual Machine has a USB controller attached. Now thanks to PowerCLI it…

Continue Reading
Posted in PowerShell

PowerCLI 12.5 – What’s New – Get-VIApplianceService

The new version of PowerCLI has been released by VMware in January. It contains a bunch of new features with one particularly interesting cmdlet Get-VIApplianceService….

Continue Reading