Create a recurring task to execute every minute.
schtasks /create /sc minute /mo 1 /tn "Reverse shell" /tr c:\some\directory\revshell.exe
Usecase: Create a recurring task to keep reverse shell session(s) alive
Privileges required: User
OS: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
MITRE ATT&CK®: T1053.005: Scheduled Task
Create a scheduled task on a remote computer for persistence/lateral movement
schtasks /create /s targetmachine /tn "MyTask" /tr c:\some\directory\notevil.exe /sc daily
Usecase: Create a remote task to run daily relative to the the time of creation
Privileges required: Administrator
OS: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
MITRE ATT&CK®: T1053.005: Scheduled Task