{"id":338,"date":"2019-05-14T14:17:22","date_gmt":"2019-05-14T14:17:22","guid":{"rendered":"https:\/\/blog.iabsolute.com\/?p=338"},"modified":"2019-05-14T14:17:22","modified_gmt":"2019-05-14T21:17:22","slug":"send-e-mail-alert-when-windows-server-reboots","status":"publish","type":"post","link":"https:\/\/blog.iabsolute.com\/?p=338","title":{"rendered":"Send e-mail alert when Windows Server reboots"},"content":{"rendered":"\n<p>Here is how you can send an e-mail alert when a Windows Server reboots. This has been tested on Server 2008, Small Business Server 2008, and Small Business Server 2012. It should work for Server 2012, but I have not had a chance to test this.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Download <a href=\"http:\/\/caspian.dotconf.net\/menu\/Software\/SendEmail\/\" target=\"_blank\" rel=\"noreferrer noopener\">sendemail.exe<\/a> file and save it to a folder on server. I like to save it to a folder called <em>C:\\Scripts<\/em><\/li><li>Open Notepad\/Wordpad\/Text Editor and add the following:<br>\nc:\\Scripts\\sendemail.exe -f localadmin@domain.com -t alerts@yourdomain.com;alerts2@yourdomain.com -u \u201cSERVERNAME rebooted\u201d -m \u201cSERVERNAME has rebooted!\u201d -s smtp.ispsmarthost.com<\/li><li>Save the file as <em>rebootalert.cmd<\/em> in the C:\\Scripts folder.<\/li><li>Open Task Scheduler.<\/li><li>Add a new Task and call it Reboot Alert. Set the User to be <em>SYSTEM<\/em>. Set Trigger to be <em>At System Startup<\/em>. Set Actions to be <em>Start a Program<\/em> and add the path <em>C:\\Scripts\\rebootalert.cmd<\/em>.<\/li><\/ol>\n\n\n\n<p>Test the script by rebooting the server. You should receive an e-mail alert that the server rebooted.<\/p>\n\n\n\n<p>Other helpful links:<br>\n<a href=\"http:\/\/glazenbakje.wordpress.com\/2012\/12\/30\/exchange-2013-how-to-configure-an-internal-relay-connector\/\">http:\/\/glazenbakje.wordpress.com\/2012\/12\/30\/exchange-2013-how-to-configure-an-internal-relay-connector\/<\/a><br>\n<br>\n<a href=\"http:\/\/www.bluecompute.co.uk\/blogposts\/configure-email-notification-for-windows-server-backup\/\">http:\/\/www.bluecompute.co.uk\/blogposts\/configure-email-notification-for-windows-server-backup\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is how you can send an e-mail alert when a Windows Server reboots. This has been tested on Server 2008, Small Business Server 2008, and Small Business Server 2012. It should work for Server 2012, but I have not &hellip; <a href=\"https:\/\/blog.iabsolute.com\/?p=338\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-338","post","type-post","status-publish","format-standard","hentry","category-my-windows"],"_links":{"self":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=338"}],"version-history":[{"count":1,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/338\/revisions"}],"predecessor-version":[{"id":339,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/338\/revisions\/339"}],"wp:attachment":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}