Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Minimum version: PS 3.0
- $emailbodyfail = "VHDs tested successfully: " + $pass + "`r`n" + "VHDs tested failed: " + $fail + "`r`n" + "`r`n" + "Failed VMs:" + "`r`n" + $emailbody
- Send-MailMessage -From "scripter@domain.com" -To "firstname.lastname@domain.com" -Subject "Failed Data Centre Backup VHDs ($fail)" -SmtpServer "emailserver.com" -Body $emailbodyfail -Attachments "c:\temp\testvhdresult.txt"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement