Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 217440

Re: VApp script to loop answer the VM questions WHILE powering on the Vapps ???????HELP

$
0
0

You might try a construct similar to this

 

foreach($vmin (Get-VApp-NameTest|Get-VM)){

    Try{

        Start-VM-VM$vm-ErrorActionStop

    }

    Catch[VMware.VimAutomation.ViCore.Types.V1.ErrorHandling.VMBlockedByQuestionException] {

        Get-VMQuestion-VM$vm|Set-VMQuestion-DefaultOption-Confirm:$false

        Start-VM-VM$vm

    }

}


Viewing all articles
Browse latest Browse all 217440

Latest Images

Trending Articles



Latest Images