## 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

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
VM | VirtualMachine[] | Specifies the virtual machines whose start policy you want to retrieve. | false | true (ByValue)
Server | VIServer[] | 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. | false | false
VMHost | VMHost[] | Specifies the hosts of the virtual machines whose start policy you want to retrieve. | false | true (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.