Was looking to use the script below to trigger events within the event log 2012 R2. Is there anyway that I can either:
Attach a copy of the log entry
Or copy the content inside the message.
The current script is below - has anyone done this?
Send-MailMessage -to <recipient email address> -Subject "Backup Success" -body "The server backup job on server1 completed successfully" -smtpserver <your mail server> -from <sender email addreess>