【维持权限】schtasks命令

时间:2021-06-20 17:44:36   收藏:0   阅读:0

创建本地定时任务(注意修改时间)

schtasks /create /sc once /tn testtask02 /tr "calc.exe" /sd 2021/06/19 /st 19:07

创建远程计算机的定时任务

schtasks /s 192.168.200.20 /u abking /p abking_password  /create /sc once /tn testtask02 /tr "calc.exe" /sd 2021/06/19 /st 19:07

删除定时任务

schtasks /delete /tn testtask02 /f

 

 

taskkill根据进程名杀死进程

taskkill /im calc.exe /f

 

评论(0)
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!