Task Scheduler Rscript with another user

Hi guys,

I created a task to run a simple rscript with my user, but my user expires the password every month, so i changed the user on task manager.
But now my script won't run, what can be?
the script local file is on C: and it is set on the job, also, i already tried to schedule directly on taskmanager or batch.
In my bat file i have three lines just for testing if the problem is in R, and the lines 1 and 3 execute normal (just create a folder), but the script won't run...
again, if i change the user on taskmanager to my user, it works...
IF NOT EXIST "\server2\wise\1" md \server2\wise\1

"C:\Program Files\R\R-4.0.3\bin\x64\Rscript.exe" "C:\R\teste\teste.R"

IF NOT EXIST "\server2\wise\2" md \server2\wise\2

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.