I'm trying to run a program on Windows Server 2019 Standard with a user that that doesn't have to be logged in.
The program reads the config file from the users profile. We are using User Profile Disks.
The program have a UI that can be overridden with /A.
When you log in with the user, everything works fine. The profile loads and the program runs.
If I log in with my profile (Domain-admin) and start the task from the Task Scheduler the user gets a temp-profile.
If I RDP the user and don't sign out, just disconnects, then start the task from the Task Scheduler,
logged in as myself, it works fine.
I.e. it works fine as long as none of the log-ins result in a temp-profile.
I've tried setting up the task with my profile as well, sometimes it works, sometimes I get a temp-profile.
I have disabled "Log on user with temporary profile."
The user have "Log on as batch job" rights.
The problem seems to be that when the task starts it can't load the user profile,
which in turn leads to that the program can't read the config-files.
It seems the problem have something to do with User Profile Disks.
Help! I'm going slightly mad.
0 Answers