Unmount ISO with answer “Yes”

This post was originally published on this site

Hi,

 

I am trying to unmount ISO from all the VMs, some of the VMs are asking for question to unmount, I tried the below and getting below error

 

Please help

 

Get-CDDrive App123 | Set-CDDrive -NoMedia -Confirm:$false | Set-VMQuestion -Option “Yes” -Confirm:$false

 

Error:

Set-VMQuestion : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the

parameters that take pipeline input.

At line:1 char:70

+ … oMedia -Confirm:$false | Set-VMQuestion -Option “Yes” -Confirm:$false

+                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (CD/DVD drive 1:PSObject) [Set-VMQuestion], ParameterBindingException

    + FullyQualifiedErrorId : InputObjectNotBound,VMware.VimAutomation.ViCore.Cmdlets.Commands.SetVMQuestion

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.