Set-VMQuestion
This cmdlet answers the specified virtual machine question using the value of the Option parameter. If the DefaultOption parameter is set to $true, the cmdlet answers the question with a default option, if any.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
SwitchParameter | named |
|
Indicates that you want to answer the virtual machine question using a default option. If no default option exists for the question, an error is generated. | required |
|
VMQuestion[] | named |
|
Specifies the virtual machine question you want to answer. |
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
Object | named |
|
Specifies an object or string to provide an option to the virtual machine question. Wildcards are supported for string values. The string can be used to specify an option ID or label. If the string does not match a valid option ID or label, or if there are multiple matches, an error is generated. | required |
|
VMQuestion[] | named |
|
Specifies the virtual machine question you want to answer. |
Output
VMware.VimAutomation.ViCore.Types.V1.VM.VMQuestion
Examples
Example 1
Answers the question stored in the $question with a default option.
Example 2
Answers the question stored in the $question variable with "cancel".
Example 3
Answers the question of VM virtual machine with a default option.
Related Commands
VM
VMConsoleWindow
VMGuest
VMGuestDisk
VMGuestFile
VMQuestion
VMResourceConfiguration
VMScript