Get-VMGuest

This cmdlet retrieves the guest operating systems of the specified virtual machines. To specify a server different from the default one, use the Server parameter. When Get-VMGuest is run against a virtual machine that is just starting, the properties of the returned VMGuest object are not filled at one time.

Syntax

-VM  <VirtualMachine[]>
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VM
VirtualMachine[] named
  • wildcards
  • pipeline
  • Specifies the virtual machines whose guest operating systems you want to retrieve.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

    Output

    VMware.VimAutomation.ViCore.Types.V1.VM.Guest.VMGuest

    Examples


    Example 1

    Get-VMGuest -VM VM

    Retrieves the guest OS of the virtual machine named VM.

    Related Commands

    Feedback

    Was this page helpful?