How to get an email when a computer is about to restart?

情到浓时终转凉″ 提交于 2019-12-08 00:57:24

问题


My work computer usually restarts once a week over night. This is done for security purposes. I don't know in advance when this could happen. Sometimes it may take even a month until the next restart.

My problem is that I have scripts running on my computer, so I would like to get a notification whenever my computer is about to restart. (I need to know when it restarts because I must log in back to my computer, otherwise the scripts won't run. Anyway . . . )

I'm trying to set Windows Task Scheduler rule to send me an email whenever my computer is about to restart. However, it looks like the scheduler supports only time triggers. So, how can I do this ?

Is there any other way to get an email whenever my computer is about to get restarted ?

Thanks

来源:https://stackoverflow.com/questions/31725287/how-to-get-an-email-when-a-computer-is-about-to-restart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!