问题描述
当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