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