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

Re: PowerCLI script to alert on snapshots in vSphere

$
0
0

With this test

if($VMsWithSnaps -ne $null){

the  part of the script that sends out the email is only executed when there are snapshots present.

If you add an

else {....}

 

block on that If statement, you can place code in that block that is fired when there are no snapshots.


Viewing all articles
Browse latest Browse all 252940

Trending Articles



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