vSphere PowerCLI Reference

Get-VMQuestion

Synopsis

Retrieves the pending questions for the specified virtual machines.

Syntax

Get-VMQuestion [-VM <VirtualMachine[]>] [[-QuestionText] <String>] [-QuestionId <String>] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
Set-VMQuestion

Detailed Description

Retrieves the pending questions for the specified virtual machines. A question is a task that requires a response from you. If the -VM parameter is not specified or its value is $null, the cmdlet returns all questions for all virtual machines on the specified servers.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
QuestionTextStringSpecify a phrase from the text that describes the questions you want to retrieve.falsefalse
QuestionIdStringSpecify the IDs of the questions you want to retrieve.falsefalse
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
VMVirtualMachine[]Specify the virtual machines whose pending questions you want to retrieve.falsetrue (ByValue)

Return Type

VmQuestion[]

Notes

Examples

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

Get-VMQuestion -VM VM

Retrieves the questions of the VM virtual machine.

-------------- Example 2 --------------

$vm = Get-VM VM

$vm | Get-VMQuestion -QuestionText "*have been moved or copied*"

Retrieves the VM virtual machine questions that contain the phrase "have been moved or copied".


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