【维持权限】schtasks命令

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

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

 

posted @ 2021-06-19 21:43  ABKing  阅读(175)  评论(0编辑  收藏  举报