【维持权限】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
金麟岂是池中物,一遇风云便化龙!
原文地址:https://www.cnblogs.com/ABKing/p/14905046.html