Windows Server意外重新启动时如何获得通知

问题描述

当Windows Server意外自行重新启动(例如关闭电源)时,是否有任何方法可以使电子邮件得到通知。我想在启动服务中添加一些批处理脚本。

注意:没有任何监控工具。

解决方法

在加载Windows 8和10时运行批处理文件:

1) Create a shortcut to the batch file. (batch file should have how you want to do during build)
2) Press Start,type Run,and press Enter.
3) In the Run window,type "shell:startup" to open the Startup folder.

shell:启动

 4) Once the Startup folder is opened,click the Home tab at the top of the folder. Then,select Paste to paste the shortcut file into the Startup folder.

拨打C:\ Yourbatch.bat

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...