Since the release of VMware Cloud Foundation (VCF) 9.0, you may have seen a few blogs from me 😅 To help folks digest all the resources for deploying and running VMware Cloud Foundation (VCF) 9.0 in a lab environment, I have put this blog post together to summarize the various considerations […]
Cybersecurity threats, especially ransomware, are constantly evolving, so it’s important to regularly audit your ESXi hosts to ensure they have the proper protections enabled. Today I want to share a simple but effective PowerCLI script, Get-RansomwareProtectionStatus, that quickly checks your VMware hosts for important ransomware-related security configurations.
🚀 What This Script Does This script focuses on three key settings that enhance protection against ransomware on your ESXi hosts:
Encryption Mode: Checks whether TPM-based encryption is active.
Secure Boot Enforcement: Confirms Secure Boot is enabled.
Exec-Installed-Only Mode (Configured & Runtime): Ensures only binaries from installed VMware VIB packages can execute.
Having these settings properly configured greatly reduces the risk of unauthorized code execution—exactly what you want to fight ransomware!
🔧 How to Use the Script
Here’s how simple it is. First connect to your vCenter and then run a script.
.\Get-RansomwareProtectionStatus.ps1 <HOST>
It generates a clear, colored summary, instantly telling you what’s secure and what needs your attention.
You can integrate this script into your monitoring routines, run it on multiple hosts with automation tools like Ansible Semaphore or GitLab CI, or even schedule regular audits.
⚡ Pro Tip: Save your reports to a file or push results directly to your monitoring dashboard to track security over time!
📦 Get the Script
Check out the script in my GitHub repo [link here] and let me know your thoughts! Direct link to script [here]
Feel free to comment or ping me on social media if you’ve enhanced it further or found a creative use case. Stay secure! 🛡️
A home lab is an engineer’s paradise – offering a safe space to experiment, troubleshoot, and master new technologies at their own pace. VMware by Broadcom supports this method of hands-on learning, and now, with VMUG Advantage, membership benefits now include access to the VMware vDefend license.
Register to join this two-part in-depth #VMUG webinar exploring the latest innovations in #VCF, with Broadcom Product Marketing Engineers: Dimitri Desmidt, Eric Gray, Feidhlim O’Leary, Kyle Gleed, Pete Koehler and Puneet Chawla. July 1 and July 8.
Join Part II of this in-depth webinar exploring the latest innovations in VCF, with Broadcom Product Marketing Engineers: Dimitri Desmidt, Eric Gray, Feidhlim O’Leary, Kyle Gleed, Pete Koehler and Puneet Chawla.