简体   繁体   English

Windows服务器重启后运行批处理脚本

[英]run batch script after windows server restart

I am trying to run a script to startup some services after windows reboot. 我试图在Windows重启后运行脚本来启动一些服务。

I have tried one method: copying shortcuts of batch script in shell:startup folder. 我尝试过一种方法:在shell:startup文件夹中复制批处理脚本的快捷方式。 which eventually will start the scripts automatically but someone has to login to the system. 最终将自动启动脚本,但有人必须登录系统。

I am thinking about the possible ways to run the script after server restart without logon to the server. 我正在考虑在服务器重启后运行脚本的可能方法,而无需登录服务器。

Any help will be highly appreciated. 任何帮助将受到高度赞赏。

Create a Windows scheduled task and set it to run on system startup: 创建Windows计划任务并将其设置为在系统启动时运行:

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM