My random rumblings

Something of everything and nothing at all

Create scheduled taks in command line

Microsoft documentation:Schtasls

Create a task that runs every 2 minutes
Schtasks /ru SYSTEM /create /sc minute /mo 2 /tn "Fix Malaysia" /tr "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -file C:\Work\scripts\FixAccounts.ps1"

Create a task that runs once a day at 08:00
Schtasks /ru "SYSTEM" /create /sc daily /mo 1 /st 08:00 /tn "PutcoFirmwareVersion" /tr "C:\Work\ScheduledTasks\R\putcounits.cmd"
Loading