VMware Cloud Community
yanivamrami
Enthusiast
Enthusiast
Jump to solution

Set-VM command gets a Confirmation Dialog w/o using the -Confirm option

Hi,

I am trying to run the following command:

Set-VM -VM $vmname -MemoryMB $mem

and get a confirmation dialog:

Confirmation

Proceed with update of the following parameters of virtual machine with name 'vmi18n23'?

New MemoryMB: 4096MB

Yes Yes to All No No to All Suspend Help (default is "Y"):

How can I avoid / auto reply to that dialog?

Thanks

Please rate helpful / correct answers. Thank you
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

By using the -Confirm:$false option like this

Set-VM -VM $vmname -MemoryMB $mem -Confirm:$false


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

By using the -Confirm:$false option like this

Set-VM -VM $vmname -MemoryMB $mem -Confirm:$false


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos