Schtasks.exe

Schedule periodic tasks

Execute

Create a recurring task to keep reverse shell session(s) alive

schtasks /create /sc minute /mo 1 /tn "Reverse shell" /tr "{CMD}"

Create a recurring task to execute every minute. — MITRE: T1053.005 — Privileges: User

Create a remote task to run daily relative to the the time of creation

schtasks /create /s targetmachine /tn "MyTask" /tr "{CMD}" /sc daily

Create a scheduled task on a remote computer for persistence/lateral movement — MITRE: T1053.005 — Privileges: Administrator