By Charles McDowell
Comptia Certified Linux Networking Professional.
Cisco Certified Networking Technician.
Microsoft Technology Associate Database Administration
“You can’t know everything, but you should look at this as you can know anything. Anything that you turn your attention to that you choose to focus on you can understand. Nothing is magic, and you can tear things apart if you need to , to find the details.
”
First we create a ps1 script to send the email.
Example:
## Email configuration $to = "insert email address” $smtp = "mail.example.com" $from = " insert email address " $subject = "Today was a great Day!" $body = "Hello All, <br>" $body += "Today was a great day!." # Send email. send-MailMessage -SmtpServer $smtp -To $to -From $from -Subject $subject -Body $body -BodyAsHtml -Priority high
Then create a job on task scheduler to run the script at an appointed time.