VMware Cloud Community
MRoushdy
Hot Shot
Hot Shot
Jump to solution

get-template guestOS

I'd like to get the GuestOS of a template.

One more, how could I learn about the "library", or reference of "ExtensionData.xx"?

Thank you,

vEXPERT - VCAP-DCV - Blog: arabitnetwork.com | YouTube: youtube.com/c/MohamedRoushdy
Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Since a template normally doesn't hold the information obtained by the VMware Tools, you can only discover the configured guest OS.

Like this

Get-Template |

Select-Object Name,

   @{N = 'OSConfigured'; E = { $_.ExtensionData.Config.GuestId } }

The ExtensionData maps the information contained in the vSphere objects.

These are documented in the VMware vSphere API Reference Documentation

There is a VMware vSphere Web Services SDK Programming Guide but that one is not really geared towards PowerCLI users.

There is a chapter on the use of the API in the PowerCLI Reference.


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

View solution in original post

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

Since a template normally doesn't hold the information obtained by the VMware Tools, you can only discover the configured guest OS.

Like this

Get-Template |

Select-Object Name,

   @{N = 'OSConfigured'; E = { $_.ExtensionData.Config.GuestId } }

The ExtensionData maps the information contained in the vSphere objects.

These are documented in the VMware vSphere API Reference Documentation

There is a VMware vSphere Web Services SDK Programming Guide but that one is not really geared towards PowerCLI users.

There is a chapter on the use of the API in the PowerCLI Reference.


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

Reply
0 Kudos