VMware Cloud Community
gladiatorindia
Contributor
Contributor

Power Cli Script to retrieve patch level information

Hi,

I need to retrieve patch level information of esx hosts in vcentre server and i am looking for a power cli script which will retrieve the patch information.

Then exports the output to csv/html file.

Thanks

Gladiator

0 Kudos
2 Replies
RvdNieuwendijk
Leadership
Leadership

I moved your question to the PowerCLI Community.

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
0 Kudos
RvdNieuwendijk
Leadership
Leadership

Take a look at my blog post Check your vSphere cluster hosts patch level with PowerCLI. Maybe that is what you are looking for.

To write the output to a .csv file you can pipe the output to the Export-CSV cmdlet. To write the output to html you can use the ConvertTo-Html cmdlet.

Regards, Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
0 Kudos