Automation

 View Only
  • 1.  Start-VM cmdlet

    Posted Jul 06, 2012 02:41 AM

    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
       }



  • 2.  RE: Start-VM cmdlet