Schedule tasks

Schedule a task that runs every time the system starts

schtasks /create /tn <TaskName> /tr <TaskRun> /sc onstart

Schedule a task that runs when user logs on

schtasks /create /tn <TaskName> /tr <TaskRun> /sc onlogon

Schedule a task that runs when the system is idle

schtasks /create /tn <TaskName> /tr <TaskRun> /sc onidle /i {1 - 999}

Schedule a task that runs once

schtasks /create /tn <TaskName> /tr <TaskRun> /sc once /st <HH:MM>

Schedule a task that runs with system permissions

schtasks /create /tn <TaskName> /tr <TaskRun> /sc onlogon /ru System

Schedule a task that runs on a remote computer

schtasks /create /tn <TaskName> /tr <TaskRun> /sc onlogon /s <PC_Name>
%d bloggers like this: