- Download sendemail.exe file and save it to a folder on server. I like to save it to a folder called C:\Scripts
- Open Notepad/Wordpad/Text Editor and add the following:
c:\Scripts\sendemail.exe -f firstname.lastname@example.org -t email@example.com;firstname.lastname@example.org -u "SERVERNAME rebooted" -m "SERVERNAME has rebooted!" -s smtp.ispsmarthost.com
- Save the file as rebootalert.cmd in the C:\Scripts folder.
- Open Task Scheduler.
- Add a new Task and call it Reboot Alert. Set the User to be SYSTEM. Set Trigger to be At System Startup. Set Actions to be Start a Program and add the path C:\Scripts\rebootalert.cmd.
Other helpful links: