Forum Discussion

Skyscraper19's avatar
Skyscraper19
Copper Contributor
Oct 21, 2022

While not entering loop

Hi community, i want to shutdown a windows server to take a vmware snapshot. So I have to check if the vm is powered down on esx.       # connect-VIServer -Server vm-vcenter001.contoso.com $c...
  • LainRobertson's avatar
    Oct 21, 2022

    Skyscraper19 

     

    Wouldn't you want line 14 to be:

     

     

    while ($vmstate -ne 'PoweredOff') {

     

     

    Cheers,

    Lain

Resources