PowerCLI Reference

Get-VMStartPolicy

Synopsis

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

Syntax

Get-VMStartPolicy [[-VM] <VirtualMachine[]>] [-Server <VIServer[]>] [-VMHost <VMHost[]>] [<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.