I think I found a solution for this situation. You need to have two accounts on the server (User1 and User2). RMD to the server under User1. As part of this RMD, create a scheduled task and set it to run under the User2 account. Then, from within this RMD, you need RMD in the server itself using the credentials of User2 (sort of like dream dreams in a dream). It is important not to minimize this new RMD window; you can make it small, but it must be open. You can then close the original RMD session and the task will be started under the User2 account, since User2 has an open desktop from the second RMD session.
Protip - do not disconnect the handles of the RMD window at the top of the RMD window - then it can be painful to close the correct RMD. If you do this, you will need to use the "Start"> "Exit" option completely from your RMD.
source share