PowerCLI last patch date script to get VIB install date

PowerCLI last patch date

You might find yourself wanting a report of when your ESXi servers have been patched for the last time. Here you will find a simple PowerCLI last patch date script that uses ESXcli to query the last VIB install date.

PowerCLI script:

PowerCLI last patch date

PowerCLI – Last Patch Date

You should still rely on vSpere Update Manager…

There you have it. A really simple and effective way to report on last patch date. However, keep in mind that the last VIB install date does not necessary say the system was fully patched on that date. Use vSphere update manager to scan for any missing (critical) patches. As of vCenter 6.5 the VMware vSphere Update Manager is embedded into the vCenter Server Appliance! Another reason to leave your Windows vCenter environment behind. As of the next major version vCenter will no longer be released for Microsoft Windows.

To scan your host using the VUM PowerCLI cmdlets you can use the following one-liner.

Leave a Comment

Your email address will not be published. Required fields are marked *