Category Archives: Scripts

Quick Tip: Check VMs for VMTools Upgrade Policy

I know I have posted before regarding changing the vmtools upgrade policy, which you can find here. I noticed that I didn’t have an explanation about how to check the current vmtools upgrade policy.

Fortunately, it is just an easy one-liner 🙂

 


get-view -ViewType virtualmachine| format-table name, @{name="ToolsUpgradePolicy";E={$_.config.tools.toolsupgradepolicy}}

Granted, I select out just the name and the upgrade policy, so if you wanted the output to be different, it would be easy enough to do so.

 

 

 

 

 

 

 

 

 

 

 

 

 

From there you can go back to my original post, and change the settings you want.

Enjoy

Use PowerCLI to run SRM Test Recovery Plans

  Requirements: PowerShellGet Module PowerCLI PowerCLI SRM MeadowCroft Module/Cmdlets   The latest PowerCLI and PowerCLI SRM are generally not available for conventional download, and the PowerShellGet Module is needed to download and install them.   PowershellGet is inherently included in: Windows 10+ Server 2016+ Windows Management Framework (WMF) 5+ Powershell 6   For Powershell versions… Continue Reading

Check ESXi Host VAAI with PowerCLI

vStorage APIs for Array Integration, or VAAI, allows the vSphere ESXi hosts to offload some of their storage workloads to the Storage arrays. Some of these workloads might be Storage vMotion a VM or provisioning a vmdk among others. VAAI is generally enabled by default on Hosts and most Storage Arrays support it. There are… Continue Reading