User Tools

Site Tools


windows:scheduledtaskswithoutbeingadmin

This is an old revision of the document!


How to run scheduled tasks without being administrator

When I first tried to run a scheduled task without being an administrator, I thought that it was an easy task: just create the task, add the user in the run-as entry in the corresponding entry in the scheduled task, and voila!!!

After puzzling myself by the first fails, and discovering that it is not an easy task, I searched in internet (as many of the visitors of this page are doing right now, uh??) and discovered that it is an issue not well docummented also. Only two meaningful references honour the “util” label:

Conventions

  • batch: the user who will run the scheduled task
  • d:\batch\test.bat: the command to run

First step: create the user

Create the user batch and add it to the users group.

Second step: give him rights

NOTA: tiene que tener los permisos de log on as a batch, etc.

Third step: give him NTFS rights

Open a command prompt as the user batch –click on start → programs → accesories → right click over “command prompt” and select “run as”– and test that it can run the command d:\batch\test.bat: for this, you have to ensure that the proper NTFS permissions are in place.

Second, ensure that this user have access to the folder c:\windows\tasks to run the scheduled tasks.

windows/scheduledtaskswithoutbeingadmin.1288107147.txt.gz · Last modified: 2022/12/02 22:02 (external edit)