Reply to Message

View discussion in a popup

Replying to:
airinaga
Contributor
Contributor

Awesome! that is exactly what I'm trying to do. Please excuse my inexperience with powerCLI as I am just figuring out how all of this works.

Is this how you are sending the report to yourself?

$Report = Get-VM | Sort-Object -Property Name | Out-String

Send-MailMessage -from $MailSender -to "you@yourdomain.com" -subject "Sending the vSphere report" -body $Report -smtpServer $MailSmtpServer

Thanks for all the help!

Reply
0 Kudos