Sometimes you need a quick and temporary solution to a problem due to time constraints. Examples that come to mind are putting on a spare tire to get to your following location or using duct tape to fix your glasses. None of these provide a permanent solution, but they accomplish your goal of getting something done quickly.
In this example, I had a small maintenance window to increase the RAM and vCPU count for all our VMs used for VDI due to months-long complaints from the users that their VMs were underpowered. With our workforce working on multiple continents and many time zones, I had a 4-hour window to do the work. With a list just shy of 200 VMs, it was not practical to work manually one VM at a time, and I used the power of PowerShell to accomplish my work. In my mind, while I started the work, the job would be simple: Power off the VMs, run the script to increase both the RAM and vCPU count, then power on the VMs and be done. I estimated 20 minutes or less. Funny how things always don't turn out how you expect them, especially in I.T.
First, to get this out of the way, I did google ways to find out what was causing my disk locks and found multiple articles from VMware, such as https://kb.vmware.com/s/article/10051 and others. The problem was that my maintenance window was quickly disappearing while I ran the commands and searched through logs.
Here's the workaround I used to get my work done.
Once I have time, I'll circle back and see if I can find the root cause of my disk locks, but until then, this got me through my scheduled maintenance within the allotted time I was given.
VMs get Powered OFF when expanding virtual Disk
Temporarily clear locks from your VMs and disks fast
Simple Guide on How to Fix a Printer That's Offline
SSHing to a Ubiquiti Switch: A Step-by-Step Guide
How to Uninstall MSI Using PowerShell and an RMM
Getting Started with VMware: Subscribing to VMUG & Getting Discounted Licensing for Your Home Lab
AI – A Risky Business: Unveiling the Dangers of AI
Key Distinctions between VMware vSphere ESXi and Microsoft Hyper-V 

