Windows 计划任务

重建Task Scheduler
1. 停服务
sc stop Schedule
 
2. 删除服务
sc delete Schedule
 
3. 重建服务
sc create Schedule binPath= "%SystemRoot%\System32\svchost.exe -k netsvcs" type= share start= auto displayname= "Task Scheduler" depend= RpcSs
 
4. 添加服务说明
sc description Schedule "Enables a user to configure and schedule automated tasks on this computer. If this service is stopped, these tasks will not be run at their scheduled times. If this service is disabled, any services that explicitly depend on it will fail to start."

The result of Task Schdule

1. 0x0 finish without problem
2. 0x1: incorrect function
3. 0x2: the system can not find the file specified
4. 0x3: the system can not find the path specified
5. 0x4: the system can not open the file
6. 0x5: access is denied

Comments

Popular posts from this blog

Nginx Proxy & Load Balance & LNMP

Snort+barnyard2+Snorby CentOS 6.5_64 Installation

ORACLE Error