C:\Users\~>schtasks /create /tn "ETL\Test Task" /tr some_command /sc daily /st 22:50
SUCCESS: The scheduled task "ETL\Test Task" has successfully been created.
C:\Users\~\>schtasks /delete /f /tn "ETL\Test Task"
ERROR: Access is denied.
Eu não estou criando a tarefa com um prompt de comando elevado, mas meu usuário tem privilégios de administrador na máquina
Tags windows-7 scheduled-tasks