1

I am trying to write a scheduled task that will run in the context of the currently logged in user.

It appears there was an option to run the task as a group in Windows 7 (see https://superuser.com/questions/656964/what-user-must-a-scheduled-task-run-as-in-order-to-be-visible-for-all-users), but this option is not present in Windows 10:

enter image description here

How can I achieve this in Windows 10?

  • Could it be the fact that you are running on Windows 10 Home Edition? On my Windows 10 Pro, I have the option to "Change User or Group" – jcrossbeam May 19 '16 at 9:24
  • @jcrossbeam - No, I'm on Win10 Enterprise :-( – Ben May 19 '16 at 9:25
  • And do you have local admin rights on the user currently logged on with? You could perhaps run Task Scheduler as Administrator, and see if that makes a difference. – jcrossbeam May 19 '16 at 9:31
  • Unfortunately I need this to run as the currently logged in user (who will not have admin privileges) as the task is designed to log information about whoever is currently logged in. – Ben May 19 '16 at 9:32
  • 1
    I see, but that is what the Change User or Group is for, which context the task will run in. The user creating the task still probably needs admin rights to be allowed to create tasks for other users. If you create the task as admin, but assign the group you want it to run as, I think you will get the results you want. – jcrossbeam May 19 '16 at 9:35
3

If you run Task Scheduler as Administrator, the option to Change User or Group will be available. There you can set the task itself to run as a non-privileged group.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.