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

Re: Delay shutdown vm

$
0
0

Welcome to the VMware VMTN Communities.

 

You can try the following PowerCLI script. It waits until there is only one virtual machine left on the host and then shutdowns the McAfee vm. Change MyVMHost into the name of your host. And Change McAfeeSVA into the name of the McAfee virtual machine.

 

$VMHost=Get-VMHost-NameMyVMHostwhile (($VMHost | Get-VM) -gt1) {Start-Sleep-Seconds5}Shutdown-VMGuest-VMMcAfeeSVA-Confirm:$false

Viewing all articles
Browse latest Browse all 252940

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>