Schtasks.exe

type: OSBinaries
Schedule periodic tasks

Full path

c:\windows\system32\schtasks.exe
c:\windows\syswow64\schtasks.exe

Commands

  1. ExecuteUser T1053.005

    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.

    os: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: CMD

  2. ExecuteAdministrator T1053.005

    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

    os: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: CMD

Detection

Resources