A workaround for the fact that a scheduled task in Windows requires a user to be logged in

前端 未结 7 707
清酒与你
清酒与你 2020-12-19 00:24

I am running a small executable created by a third party that needs to run at regular intervals on a Windows 2008 server. This executable effectively ETLs information from

相关标签:
7条回答
  • 2020-12-19 00:59

    This looks to be an old thread, but I recently ran in to this in my organization due to UAC requirements they were not using. I am still testing this, but I believe you can still enable interactive mode on a scheduled task by using the /Change command on the task and adding the /IT flag to make it interactive. Referenced here: https://docs.microsoft.com/en-us/windows/desktop/taskschd/schtasks

    schtasks /Change /tn "Task A" /IT /RP "password of user if used"
    

    My initial tests show this to be working, however I cannot noticeably see a difference to the task in task scheduler when I do this. So, I am not sure of how to verify if it is set to do this.

    0 讨论(0)
提交回复
热议问题