vSphere PowerCLI Reference

Get-VMStartPolicy

Synopsis

Retrieves the start policy of the virtual machines on a vSphere server.

Syntax

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

Related Commands

Online version
Set-VMStartPolicy

Detailed Description

Retrieves the start policy of the virtual machines on a vSphere server. 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[]Specify the virtual machines whose start policy you want to retrieve.falsetrue (ByValue)
ServerVIServer[]Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsefalse
VMHostVMHost[]Specify the hosts of the virtual machines whose start policy you want to retrieve.falsetrue (ByValue)

Return Type

VMStartPolicy

Notes

Examples

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

Get-VMStartPolicy -VM VM

Retrieves the start policy of the virtual machine named VM.


Copyright © 1998 - 2011 VMware, Inc. All rights reserved.