VMware Cloud Community
johnjohnjjj
Contributor
Contributor

How can i get the VMHost's operating system and serivce pack info using Get-VMHost

I am trying to get the VMHost operating system info , but I can not find the required scripts. I tired this :-

Get-VMHost 

which return a lot of info about the VMHost,, but the operating system info is missing. can anyone advice how I can get the operating system info for a VMHOst?

0 Kudos
1 Reply
Craig_Baltzer
Expert
Expert

There is lots of additional information accessible through the in the ExtensionData attribute. Try

(Get-VMHost -Name vmhostFQDN).Extensiondata.Summary.Config.Product

replacing vmhostFQDN with the full name of one of your VM hosts

0 Kudos