Category Archives: Scripting

Why Crash-Consistent VM Backups Aren’t Always Enough

In lab and small-scale environments, it’s common to rely almost entirely on VM-level backups. That’s exactly how my lab is built: a single virtual machine runs several services I depend on regularly, and it’s protected by a daily, CBT-enabled backup … Continue reading →

Posted in Lab Infrastructure, Scripting, Virtualization | Leave a comment

How to use PowerCLI with Federated vCenter Logins

Earlier this year, I created a post about using PowerCLI to connect to an environment that was configured for Entra ID authentication (https://enterpriseadmins.org/blog/scripting/how-to-use-powercli-with-entra-id-federated-vcenter-logins/). I’ve recently deployed VMware Cloud Foundation 9.0.1 in a lab, and with the help of a couple … Continue reading →

Posted in Scripting, Virtualization | 1 Comment

Simplifying Certificate Trust in Multi-Lab Environments

In my lab I have a jump box that I typically use for management. It is joined to active directory and automatically trusts my primary CA root certificate. This CA issued the Machine SSL certificate for my vCenter Server, so … Continue reading →

Posted in Lab Infrastructure, Scripting, Virtualization | 1 Comment

Automating vCenter and Host Log Bundle Collection with PowerCLI

Manually collecting log bundles from vCenter and hosts can be repetitive and time-consuming. Here’s how I automated the process with PowerCLI. I wanted a short script that would let me pick a vCenter server, then do the other relevant tasks: … Continue reading →

Posted in Scripting, Virtualization | Leave a comment

Cleaning Up Orphaned Tag Associations in vCenter

I was recently made aware of a KB article titled “Tag associations are not removed from vCenter Server database when associated objects are removed or deleted” (https://knowledge.broadcom.com/external/article?articleNumber=344960). The article includes a script that removes orphaned tag assignments left behind in … Continue reading →

Posted in Scripting, Virtualization | Leave a comment