windows2008服务器设置系统启动时程序自动运行

转自:http://bbs.qcloud.com/thread-4082-1-1.html

 

设置windows服务器启动时自动运行程序,而且不需要用户登录,就可以启动

首先准备好,程序的启动脚本文件或运行文件,如:start.bat

方法1: 通过系统计划任务实现
windows2008服务器设置系统启动时程序自动运行 

windows2008服务器设置系统启动时程序自动运行 
windows2008服务器设置系统启动时程序自动运行 

windows2008服务器设置系统启动时程序自动运行 

windows2008服务器设置系统启动时程序自动运行 
 

“浏览”找到 程序的启动脚本文件或运行文件

windows2008服务器设置系统启动时程序自动运行 

windows2008服务器设置系统启动时程序自动运行 

windows2008服务器设置系统启动时程序自动运行 
 

输入管理员账号的密码,点击确定,这样计划任务就会在系统启动时自动运行

windows2008服务器设置系统启动时程序自动运行 

方法2: 通过组策略设置脚本随服务器启动
开始->运行->gpedit.msc->计算机配置->Windows设置->脚本(启动/关机)
windows2008服务器设置系统启动时程序自动运行 

windows2008服务器设置系统启动时程序自动运行 
 

添加启动脚本,点击确定,就可以了。
windows2008服务器设置系统启动时程序自动运行