PowerCLI Reference

Get-VMStartPolicy

Synopsis

This cmdlet retrieves the start policy of the virtual machines on a vCenter Server system.

Syntax

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

Related Commands

Online version
Set-VMStartPolicy

Detailed Description

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.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VMVirtualMachine[]Specifies the virtual machines whose start policy you want to retrieve.falsetrue (ByValue)
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no 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.falsefalse
VMHostVMHost[]Specifies the hosts of the virtual machines whose start policy you want to retrieve.falsetrue (ByValue)

Return Type

Zero or more VMStartPolicy objects

Notes

Examples

-------------- Example 1 --------------

Get-VMStartPolicy -VM VM

Retrieves the start policy of the virtual machine named VM.


Copyright © VMware, Inc. All rights reserved.