VMware Cloud Community
FriendlyPim
Contributor
Contributor
Jump to solution

GuestOS call pulling original OS instead of current OS?

I'm using the config.guestFullName call to pull current OS versions for a report. I'm getting all kinds of different OS versions than what is currently installed/upgraded, Windows 7, Windows 8, Server R2, Other (32-bit).  Linux servers come back with a bunch of fun stuff as well, but I'm not too worried about those right now.  The Guest OS reflects correctly for all servers in vSphere, and I thought that the config.guest.FullName was grabbing the same property, but I guess not? I know "Configured OS" is also different, and not what I'm looking for. Is there a different call for the current Guest OS property that I'm not seeing? 

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

The Get-VMGuest cmdlet returns an object with the OSFullName property.
Provided you have VMware Tools running in the Guest OS, that is the actual Guest OS.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

2 Replies
LucD
Leadership
Leadership
Jump to solution

The Get-VMGuest cmdlet returns an object with the OSFullName property.
Provided you have VMware Tools running in the Guest OS, that is the actual Guest OS.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

FriendlyPim
Contributor
Contributor
Jump to solution

Thank you for pointing out tools, "guest.toolsVersionStatus" was the call I was looking for.

0 Kudos