VMware Cloud Community
drivera01
Enthusiast
Enthusiast

Start-VM cmdlet

So if I do a  vm migration from cluster X to Y and I want to script the power on of 100 VM's. How do I answer the question that will be asked  "I copied, I moved"

I would like to use the default value "I copied". Is it possible?

Right now my power-on script stops and waits for me to answer the questions.

Thanks!!!!

$listing="vm1","vm2"
foreach ($vm in $listing)
   {
     Start-VM -VM $vm -RunAsync
   }

0 Kudos
1 Reply
aravinds3107
Virtuoso
Virtuoso

Check the below and see if it helps

Managing Virtual Machine questions with PowerCLI


Using PowerCLI To Answer Virtual Machine Message Questions

If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful |Blog: http://aravindsivaraman.com/ | Twitter : ss_aravind
0 Kudos