开发者

Task Scheduler: How to schedule a task to execute at login

开发者 https://www.devze.com 2023-03-14 02:44 出处:网络
I am working with the Windows Task Scheduler using C++ Win32 - see MSDN link http://msdn.microsoft.com/en-us/librar开发者_如何学Pythony/aa383614(v=VS.85).aspx. I know that to schedule a task at a spec

I am working with the Windows Task Scheduler using C++ Win32 - see MSDN link http://msdn.microsoft.com/en-us/librar开发者_如何学Pythony/aa383614(v=VS.85).aspx. I know that to schedule a task at a specific time TASK_TRIGGER_TIME, TASK_TRIGGER_DAILY, MONTHLY etc. I dont need to be a admin or ask for elevated permissions.

I am getting errors on saving my login & boot tasks & I am not sure why?

Do I need admin privileges or elevated rights to schedule a task to execute when I login or when my laptop starts (TASK_TRIGGER_LOGON, TASK_TRIGGER_BOOT)?


Only a member of the Administrators group can create a task with a boot trigger. The documentation clearly states so, check the link

As for the Logon trigger, here is an example on MSDN, which might help you see what you are missing.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号