【问题标题】:How to get notified when my windows server reboot unexpectedly如何在我的 Windows 服务器意外重启时收到通知
【发布时间】:2020-09-03 02:48:46
【问题描述】:

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

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

【问题讨论】:

    标签: windows windows-services windows-server-2012


    【解决方案1】:

    在加载 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.
    

    外壳:启动

     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

    【讨论】:

      猜你喜欢
      • 2017-11-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多