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

Re: print outputed data and send mail

$
0
0

The script is looking to find the "owner" of snapshot through the events.

It could be that the script doesn't find the owner. This could for example occur when the event corresponding with the creation of the snapshot is not present anymore. It could be that remove events after a certain number of days.

Can you check if the owner is fodun ?

You could do that by looking at the content of the $SnapshotInfo variable after line 105 in Alan's script.

 

To whom were you planning to send the email in your original script ?

A fixed email address ?

In that case you could do

 

 

$text=$VMsWithSnaps|SortCreationDate|Out-String
Send-MailMessage-SmtpServermy.smtp.server-Fromfrom@domain-Toto@domain-SubjectReport-Body$text

Viewing all articles
Browse latest Browse all 244595

Trending Articles



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