< Back

Get-VMQuestion

Sun Jan 19, 2020 6:56 pm

NAME Get-VMQuestion



SYNOPSIS

This cmdlet retrieves the pending questions for the specified virtual machines.





SYNTAX

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

[<CommonParameters>]





DESCRIPTION

This cmdlet 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

-QuestionId <String>

Specifies the IDs of the questions you want to retrieve.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-QuestionText <String>

Specifies a phrase from the text that describes the questions you want to retrieve.



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? true



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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-VM <VirtualMachine[]>

Specifies the virtual machines whose pending questions you want to retrieve.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? true



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Zero or more VmQuestion objects







NOTES









-------------------------- 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".



RELATED LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... stion.html

Set-VMQuestion