Quantcast
Channel: VMware Communities : Discussion List - Automation Tools
Viewing all articles
Browse latest Browse all 9071

Waiting for tasks to complete

$
0
0

I am writing a PowerCLI script that includes taks thate take some time to complete.

For example, my script includes a command to shutdown a VM, like:

 

Get-VM $vm | Shutdown-VMGuest

 

How can I ensure that the script waits till the VM is completely powered off?

Regards

 

marius


Viewing all articles
Browse latest Browse all 9071

Trending Articles



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