Mini PCs with 128 GB RAM: New Home Lab Era!
Unlock mini PCs with 128 GB RAM. The new Crucial 128 GB SODIMM RAM modules have officially been released and you can find them now online
VMware technologies
Unlock mini PCs with 128 GB RAM. The new Crucial 128 GB SODIMM RAM modules have officially been released and you can find them now online
VCF is a powerful platform designed to simplify the deployment of vSphere, NSX and the Aria product family. This is both a blessing and a curse. On the one hand, the Cloudbuilder and SDDC Manager significantly simplify deployment, but this also takes away a certain […]
Managing encryption across multiple ESXi hosts can be a bit of a hassle. But don’t worry. I’ve got a simple PowerCLI script that’ll save you time and headaches by quickly retrieving encryption status and recovery keys from your VMware environment.
Ensuring your ESXi hosts are correctly encrypted is essential for security. Regular checks help prevent surprises later, especially during troubleshooting or audits.
First, make sure you’re connected to your vCenter:
Connect-VIServer -Server
Replace with your vCenter IP or FQDN.
Here’s a quick rundown of the PowerCLI script to verify encryption settings across all ESXi hosts and who Recovery key for each ESXi host. (link to GitHub repository and file tpm_recovery_key_backup.ps1):
# Connect to your vCenter server (if not already connected)
# Connect-VIServer -Server <VCENTER_IP_OR_FQDN>
$esxis = get-vmhost | Sort-Object
foreach ($esx in $esxis) {
$key= @()
$enc = @()
if ($esx.ConnectionState -ne "Connected" -and $esx.ConnectionState -ne "Maintenance") {
Write-Host ""
Write-Host "================================================================================" -ForegroundColor Yellow
Write-Host "๐ซ SKIPPED HOST" -ForegroundColor Yellow
Write-Host "Host : $($esx.Name)" -ForegroundColor DarkYellow
Write-Host "Reason : Not powered on or disconnected." -ForegroundColor DarkYellow
Write-Host "================================================================================" -ForegroundColor Yellow
Write-Host ""
continue
}
$esxcli = Get-EsxCli -VMHost $esx -V2
try {
$key = $esxcli.system.settings.encryption.recovery.list.Invoke()
$enc = $esxcli.system.settings.encryption.get.Invoke()
Write-Host "================================================================================" -ForegroundColor DarkCyan
Write-Host "๐น ESXi Host : $($esx.Name)" -ForegroundColor Cyan
Write-Host "๐ Recovery ID : $($key.RecoveryID)" -ForegroundColor Green
Write-Host "๐๏ธ Recovery Key : $($key.Key)" -ForegroundColor Yellow
Write-Host "๐ Encryption Mode : $($enc.Mode)" -ForegroundColor Magenta
Write-Host "================================================================================" -ForegroundColor DarkCyan
Write-Host ""
}
catch {
Write-Host ""
Write-Host "================================================================================" -ForegroundColor DarkGray
Write-Host "โ ERROR for host : $($esx.Name)" -ForegroundColor Red
Write-Host "โ ๏ธ Failed to get encryption key for $($esx.Name) ."
Write-Host "๐งจ Error details : $_"
Write-Host "================================================================================" -ForegroundColor DarkGray
Write-Host ""
}
}
This quick script helps you stay on top of ESXi encryption keys effortlessly. Just copy, adjust if needed, and run. Happy scripting!
See how Docker NFS Mount can provide shared storage for your Docker containers in home lab environments.
Join Leonid FR, 3/14, for a @VMware{code} CMTY Call. 101 on using vRO tool, at 11am Pacific. Register here – Come one, come all! https://broadcom.zoom.us/meeting/register/ilVI-dH3TSCSRp6BSp6t9A#/registration
I started thinking about how I could use this blog to make a sizer based on my previous AVS storage sizing post. Of course, as a reminder this is not an official sizer, but I understand that many in the partner and customer community donโt have any access to this basic need. So here we are! […]
We recently spun up a new datacenter and used another site to bootstrap our DNS configuration. Now that weโve got local DNS services, itโs time to change all our configuration! In this article Iโll show you how you can change the DNS configuration in your NSX environment. The process is the […]
Introduction to the deploy.sh Script | The deploy.sh script is a fundamental tool in the VMware Aria Automation ecosystem (formerly vRealize Automation), responsible for deploying, configuring, and managing all components of this advanced environment. Located in the /opt/scripts/ […]
Ready to dive into automation? Excellent choice! Planning to automate on a Mac, Linux, or Windows? Fantastic! I love that VMware PowerCLI is built as a PowerShell module, making automation seamless across Mac, Linux, and Windows. Since VMware is my primary focus for automation, PowerShell […]
Take a look at the latest developments in Home Lab Hardware for 2025 and a few hardware solutions I’m excited about