Cloning vSphere Standard vSwitch Port Groups and Policies with PowerCLI

If you’re using standard vSwitches, keeping port groups consistent across ESXi hosts can be tedious and error-prone. VLANs are easy to replicate, but port group policies like security, NIC teaming, and traffic shaping are often missed. This PowerCLI function lets you clone standard vSwitch port groups from one host to another, including their associated policies….

Continue Reading

Automate Free Let’s Encrypt SSL Certificate Replacement for vSphere 8

Due to popular demand, I have updated the vCenter SSL Installation script with some significant enhancements. (Once again Credit to Ryan Bolger – https://github.com/rmbolger for the Posh-ACME module). This update now checks for prerequisites and installs them. In addition, it now supports vSphere 7 and vSphere 8. The latest version of Install-vCenterSSL.ps1, generates certificates and then…

Continue Reading

Instant Cloned ESXi for My VMware Homelab

Nested Virtualisation has come a long way over the past 15 years. I remember hacking away at VMware Workstation to run ESX 3.5 and then run a guest VM nested on top of that just because I could. Although VMware does not officially support Nested Virtualisation for production use, the capability is native these days….

Continue Reading

Setup vCenter Alarm Action Script To Send Push Notifications

I recently came across this useful app, Alertzy.app. It’s a service that allows you to send and receive real-time alerts as push notifications on your iOS and Android device. I was impressed with how simple it was to set up and use, and it’s free for up to 100 notifications per day. I figured this could…

Continue Reading

Secure PowerShell Scripts Running with Windows Task Scheduler

Do you currently or have you ever wanted to schedule the execution of PowerShell scripts with Windows Task Scheduler? If so, there are some considerations you should be aware of surrounding the security of those scripts. For example, it wouldn’t be difficult for a user to alter a script to decrypt and export encrypted credentials….

Continue Reading

Automate Free SSL Certificate Replacement for vCenter 7

In the past, I’ve posted some guides for replacing the default self-signed vCenter certificate with a free, trusted Let’s Encrypt 90 Day certificate. I recently started to look into generating the free SSL using an ACME client and stumbled across this PowerShell module Posh-ACME (Credit to Ryan Bolger – https://github.com/rmbolger for this module). I decided to…

Continue Reading

Resolve, No Connection to VR Server: Unknown with PowerShell Function

I stumbled across this error the other day in my environment No Connection to VR Server: Unknown. I then found the following workaround in this VMware KB https://kb.vmware.com/s/article/2148376, which worked nicely. The issue was becoming a little frequent, so I decided to wrap up this solution with a nice little PowerShell function found on my Github page. Thanks for…

Continue Reading

Incorrect Product Forwarding Class on vDS When Upgraded via PowerCLI

I recently encountered network issues on a VM migrated to a new host, it turns out it was due to a mismatch on the “Product_Forwarding_Class” between the host and vDS. The Forwarding Class configured for vDS version 6.5.0 and below is “etherswitch”, and from vDS version 6.6.0, and above the Forwarding Class is “cswitch” When upgrading my vDS from…

Continue Reading

vSAN Storage Policy Advanced Rules Report

Some time ago, I needed to audit all vSAN storage policies over multiple vCenter environments and confirm all the advanced policy rules were all set correctly. The process meant going through dozens of storage policies via the vSphere Web Client and documenting all the rules in a spreadsheet. This task was going to be tedious,…

Continue Reading

PowerCLI Script to Download VM Screenshots from Datastore

Occasionally, you may need to download virtual machine files from the Datastore. For example, If vSphere HA resets virtual machines, there is a good chance just before it reset it, vSphere HA VM monitoring took a screenshot of the VM console, storing it with the VM configuration files on the Datastore. Reset by vSphere HA. Reason: VMware…

Continue Reading