Forum Discussion
tom2025
Mar 13, 2025Copper Contributor
schtasks help
Hello, I would like to create the following Scheduled Task via script: schtasks /Create /RU User /RP Password /SC ONLOGON /TN “Task” /TR “C:\Temp\Programm.exe” /RL HIGHEST /DELAY 0001:00 2 quest...
JudeHartley
Mar 21, 2025Iron Contributor
For executing only if the user is logged on: Use /IT. For repeating every hour: Use /SC HOURLY with /RI, but you may consider creating separate tasks for both conditions depending on the desired behavior.