The issues that you are describing are typically related to incorrect logon settings on the task.
As your task is interactive, please check to see if the task logon properties are set as follows.
When Workstation is logged on: Logged on user
When Workstation is logged off: Logon specified user
When Workstation is locked: Unlock using specified user.
Specified user: can be set either to Use the Default User or Use this account. These are the user credentials that will be used for the logon and unlock of the server.
Also, please be sure this user is logged off the server at the time that the task is scheduled to run.
If you need further assistance or would like us to troubleshoot your issue, please contact support via the portal, or you may email us at email@example.com