how to see if a particular patch has been applied to my Esxi host


I wouldl like to have powercli script to check if a particular patch has been applied to all of my esxi host.

The patch number is ESXi510-201412101-SG
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alessandro ScafariaInfrastructure Premier Field AdministratorCommented:
This worked for me:

Let me know....
fireburn11Author Commented:
doesnt work for me , i dont have root username and password to esxi host. I was hoping using powercli to vcenter will give me what I need.
Alessandro ScafariaInfrastructure Premier Field AdministratorCommented:
I don't know if I'm pushing you anymore.....Can you reset your ESXi root password or you're forced to bypass it?
Uni KittyCommented:
This is for 4.0 but I think it will work for 5.x.  You probably still need admin access to use this method as well.

To determine the system level and build number of an ESX host using PowerCLI:
Open the PowerCLI command prompt.
Connect to the ESX or ESXi host using the command:

Connect-VIServer -Server ESXHostnameOrIPAddress

Note: Authenticate using an administrative user, such as root.

Run this command:

get-view -ViewType HostSystem -Property Name, Config.Product | select Name,{$_.Config.Product.FullName},{$_.Config.Product.Build} | ft -auto
To determine the patches or updates applied on the host, run this command:
Get-VMHost hostname | Get-VMHostPatch | Select Id,InstallDate,Description | ft -auto

If this doesn't work, you can compare it to the information about esxupdate commands in vCLI, in the vSphere Command-Line Interface Reference for version 5.x.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
ESXi510-201412101-SG from the patch portal is Build Number: 2323236

which is commonly known as ESXi 5.5 U3

So what is the current build number of your ESXi 5.5, which can be found, in the Summary Page when checked with vSphere Client.

PowerCLI, why not use the

VMware Community Pack

or use RV Tools -

Both will report the Build Number!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.