Enable a non Admin to run a Scheduled Task without giving them admin rights.

Posted on 2008-06-13
Last Modified: 2013-12-04
Need to enable a non administrative group to run a current scheduled task without giving them admin rights - The task is already set up to run as a service account that has admin rights just need to give them rights to run the service only.  I added the group to the permissions of the task but they do not have rights to see the scheduled tasks of that server to run it.  
Question by:Kizzy12
  • 3
  • 2
LVL 38

Accepted Solution

Rich Rumble earned 500 total points
ID: 21781388
This is to manually run a task that is normally schedule from certain times? You could try my very popular runas script which allows you keep a password encoded (not encrypted) from them: But scheduled tasks are supposed to be automagic, and not need someone to kick them off at a certain time.

What happens when a user who is not admin, right-click's on the task and select's "run" ?
You can try from the cmd line too, schtasks /run /tn "Security Script"

Author Comment

ID: 21782072
Thanks for your input.  We didn't want to have to set it up to use Runas.  I found a work around today which seems to give us what we wanted.
The scheduled task runs on it's own but at times we wanted to give a non admin rights to run if needed on off hours.
I added the group to the Task permissions RWX only
I then added this group to the task folder using CACLS C:\WINDOWS\TASKS /E /G GROUP:R
This gives the group rights to only view the one task as well as execute and run if needed.  
LVL 38

Expert Comment

by:Rich Rumble
ID: 21783016
You can ask for your points back if you wish, as I don't feel I contributed to the answer, I'm glad you did find what works.

Author Comment

ID: 21792984
No you can keep the points since your solution also would work.  I don't track or follow the points anyway.  Thanks again for your support.
LVL 38

Expert Comment

by:Rich Rumble
ID: 21795614
Fair enough, thanks!

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Users of Windows 10 Professional can disable automatic reboots using the policy editor. This tool is not included in the Windows home edition. But don't worry! Follow the instructions below to install (a Win7) policy editor on your Windows 10 Home e…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now