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

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 232869

Trending Articles