Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9078

Starting a Scheduled Task from Command prompt gives Access Denied

$
0
0

I have a FreeFileSync setup that backups my files. I need non-admin users be able to launch the backup.

I created a scheduled task with the name "FreeFileSync PC Backup" and configured it without a trigger, but with run on demand option to initiate the backup, and run it with a useraccount that has admin privileges.

When I right-click the task from task scheduler, and choose run, it executes normally. If I create a batchfile and run schtasks /run /tn "FreeFileSync PC Backup" I get an ERROR: Access Denied.

I can right-click run as admin and login with an admin account and it will work, but that defeats its purpose.

I know this used to be possible. What am I doing wrong?


Viewing all articles
Browse latest Browse all 9078

Trending Articles