Script not running on Windows 11 Task Scheduler

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
kaneelias
Posts: 16
Joined: 06 Aug 2018, 10:14

Script not running on Windows 11 Task Scheduler

Post by kaneelias »

Hi,

I am trying to run a suball script daily at 2pm on my Windows 11 laptop that hosts my Plex Server.

When I run this batch file, manually, it runs with no issues.

Code: Select all

filebot -script fn:suball W:/ Z:/ -non-strict --def maxAgeDays=21
and I can see it is calling my user profile eg.

Code: Select all

C:\users\psych>filebot -script fn:suball W:/ Z:/ -non-strict --def maxAgeDays=21
When I use the task scheduler to run the same batch file automatically, the exact same batch is run but I can see the path changes to

Code: Select all

C:\Windows\system32>filebot -script fn:suball W:/ Z:/ -non-strict --def maxAgeDays=21
and the script then shows

Code: Select all

File does not exist W:\
File does not exist Z:\
Done
Not sure why task scheduler is not using my local account to run the script. Any advice or experience would be appreciated.

Thanks
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Script not running on Windows 11 Task Scheduler

Post by rednoah »

Seems to be a generic Windows problem unrelated to FileBot specifically. Why can't a Task Scheduler job access a mapped network drive? You might get lucky with a general Google search. Please report back if you find a solution for the next guy who stumbles up this thread.
:idea: Please read the FAQ and How to Request Help.
kaneelias
Posts: 16
Joined: 06 Aug 2018, 10:14

Re: Script not running on Windows 11 Task Scheduler

Post by kaneelias »

Thanks for pointing me in the right direction. I had it working about two years ago but that thread was from 2013. In any case it got me on the right track and can confirm unchecking "run with the highest privileges" got it working.

Hopefully this helps someone else.

And thanks again for all your help
Post Reply