Get-VMStartPolicy

This cmdlet retrieves the start policy of the virtual machines on a vCenter Server system. The virtual machines are specified by the VM parameter or retrieved from the host passed through the VMHost parameter. To specify a server different from the default one, use the Server parameter.

Syntax

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

Parameters

Required Parameter Name Type Position Features Description
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.
    optional
    VM
    VirtualMachine[] named
  • wildcards
  • pipeline
  • Specifies the virtual machines whose start policy you want to retrieve.
    optional
    VMHost
    VMHost[] named
  • wildcards
  • pipeline
  • Specifies the hosts of the virtual machines whose start policy you want to retrieve.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Host.VMStartPolicy.VMStartPolicy

    Examples


    Example 1

    Get-VMStartPolicy -VM VM

    Retrieves the start policy of the virtual machine named VM.

    Related Commands

    Feedback

    Was this page helpful?