Syntax
Get-VMStartPolicy [-VMHost <VMHost[]>] [[-VM] <VirtualMachine[]>] [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online versionDetailed 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
| Name | Type | Description | Required? | Pipeline Input | Default Value |
|---|---|---|---|---|---|
| VM | VirtualMachine[] | Specify the virtual machines whose start policy you want to retrieve. | false | true (ByValue) | |
| Server | VIServer[] | 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. | false | false | |
| VMHost | VMHost[] | Specify the hosts of the virtual machines whose start policy you want to retrieve. | false | true (ByValue) |
Return Type
VMStartPolicyNotes
Examples
-------------- Example 1 --------------
Get-VMStartPolicy -VM VM
Retrieves the start policy of the virtual machine named VM.