I think the FAQ in this case might be old but more important, not relevant to all errors reporting "Access denied".
Agreed. Just trying to demonstrate I'm looking to be a good customer and try to solve the problem ourselves before reaching out to support. It would be helpful if we could get an explanation of what each option on the Credential set-up screen does. The old documentation at
https://www.visualcron.c...doc/html/credentials.htm seems to be for an older version of VisualCron, as it seems the new UI pretty much directly exposes the underlying Win32 API calls. The old documentation does contain some practical wisdom that I would like to see carried forward, though - such as why loading profiles can be bad. It might also help to add my link to the Windows Performance Team blog about Desktops and Workstations.
Please explain what Task type you are talking about and if you use an AD user or not. And what settings you use at the moment in the Credential.
We're using almost exclusively the Execute Task Type. We have a few FTP jobs left, one SQL job, and that is it - so over 95% of jobs are all one or more Execute Tasks.
VisualCron service runs as LOCAL SYSTEM (as previously mentioned).
Tasks run as a AD user account, and every task is set-up with the same AD user account. The task's AD user account is added to the Local Security Policy "Log on as batch job" on the OS running Visual Cron Server.
Here is a dump of our two settings
RunAs DesktopPath DuplicateToken LoadProfile LocalLogin ExecuteAPI InitOpenDesktop OverrideLogonTypeAndProvider LogonProvider LogonType
DOMAIN\TaskService WinSta0\Default TRUE FALSE FALSE API TRUE FALSE LOGON32_PROVIDER_DEFAULT LOGON32_LOGON_BATCH
DOMAIN\TaskService WinSta0\Default TRUE TRUE TRUE API TRUE FALSE LOGON32_PROVIDER_DEFAULT LOGON32_LOGON_NEW_CREDENTIALS
Here is an example log of when the error happens:
1/23/2018 10:51:26 AM Debug Calling StartTaskProcess() with Task: Test_Task_1(1983380)
1/23/2018 10:51:26 AM Info Task started(Execute): Test_Task_1(1983380)
1/23/2018 10:51:26 AM Debug ptrDesktop: 188
1/23/2018 10:51:26 AM Debug ptrWindowStation: 184
1/23/2018 10:51:26 AM Debug Process status - has left WaitForExit (1983379)
1/23/2018 10:51:26 AM Debug StartBackgroundProcess->Getting output (API)
1/23/2018 10:51:26 AM Debug ProcessTaskExecuteClass->CloseOutputHandle: d:\VisualCRON\Temp\2294c181-f96c-443c-804b-273c7bd8e642
1/23/2018 10:51:26 AM Debug ProcessTaskExecuteClass->CloseOutputHandle: d:\VisualCRON\Temp\13283d26-daf1-4077-9212-e00df2f950b0
1/23/2018 10:51:26 AM Debug StartBackgroundProcess->OutPut captured (1983379)
1/23/2018 10:51:26 AM Debug Process status - trying to retrieve exit code
1/23/2018 10:51:26 AM Debug Process status - ExitCode fetched (1983379)
1/23/2018 10:51:26 AM Debug Process status - ProcessHandles closed (1983379)
1/23/2018 10:51:26 AM Debug ProcessTaskExecuteClass->CloseOutputHandle: d:\VisualCRON\Temp\2294c181-f96c-443c-804b-273c7bd8e642
1/23/2018 10:51:26 AM Debug ProcessTaskExecuteClass->CloseOutputHandle: d:\VisualCRON\Temp\13283d26-daf1-4077-9212-e00df2f950b0
1/23/2018 10:51:26 AM Debug ProcessTaskExecuteClass->CloseOutputHandle: d:\VisualCRON\Temp\d19bf33f-052d-4d94-be4c-e0620253e24e
1/23/2018 10:51:26 AM Debug Ending timeout timer (1983379)
1/23/2018 10:51:26 AM Debug Ending output readers (1983379)
1/23/2018 10:51:26 AM Debug Closing desktop handles (1983379)
1/23/2018 10:51:26 AM Debug Process status - About to raise TaskCompleted (1983379)
1/23/2018 10:51:26 AM Info Task completed (Success)->'Test_Task_2' (1983379)
1/23/2018 10:51:26 AM Debug PrevTaskProcess(Test_Task_2)->ExitCodeResult: Success (ECCId: 746c95ce-d394-491c-925c-8bd50e4daa8ePId: 1983379, Exit code: 0)
1/23/2018 10:51:26 AM Debug Found 1 matching flows. (1983379)
1/23/2018 10:51:26 AM Debug Calling GetNextTaskProcess()
1/23/2018 10:51:26 AM Debug Next execution (2) for Job 'Test_Task_3' is: 1/23/2018 10:51:55 AM
1/23/2018 10:51:26 AM Debug SendJobStats->Ended (1/23/2018 10:51:25 AM)
1/23/2018 10:51:26 AM Info Job completed (Success)->'Test_Task_3'
1/23/2018 10:51:26 AM Debug CreateProcessWithLogonW returned: False
1/23/2018 10:51:26 AM Err Unable to start process: Access is denied
1/23/2018 10:51:26 AM Debug Process status - process is nothing
1/23/2018 10:51:26 AM Debug Process status - trying to retrieve exit code
1/23/2018 10:51:26 AM Debug Process status - ExitCode fetched (1983380)
1/23/2018 10:51:26 AM Debug Process status - ProcessHandles closed (1983380)
1/23/2018 10:51:26 AM Debug ProcessTaskExecuteClass->CloseOutputHandle: d:\VisualCRON\Temp\01793b9d-5832-4947-8d4f-9e1563c0b0d7
1/23/2018 10:51:26 AM Debug ProcessTaskExecuteClass->CloseOutputHandle: d:\VisualCRON\Temp\ad2208a3-0aba-487e-aac6-88cdb70715ee
1/23/2018 10:51:26 AM Debug ProcessTaskExecuteClass->CloseOutputHandle: d:\VisualCRON\Temp\dfc08b31-9385-41b4-9151-89abd54a1cf3
1/23/2018 10:51:26 AM Debug Ending timeout timer (1983380)
1/23/2018 10:51:26 AM Debug Ending output readers (1983380)
1/23/2018 10:51:26 AM Debug Closing desktop handles (1983380)
1/23/2018 10:51:26 AM Debug Process status - About to raise TaskCompleted (1983380)
1/23/2018 10:51:26 AM Info Task completed (Failure)->'Test_Task_1' (1983380)
1/23/2018 10:51:26 AM Debug PrevTaskProcess(Test_Task_1)->ExitCodeResult: Failure (ECCId: 746c95ce-d394-491c-925c-8bd50e4daa8ePId: 1983380, Exit code: 5)
1/23/2018 10:51:26 AM Debug Found 1 matching flows. (1983380)
1/23/2018 10:51:26 AM Info Task Notification of type: Email started.
1/23/2018 10:51:26 AM Info Task started(Email): General Job Error Email Notification (1983381)
1/23/2018 10:51:26 AM Debug Next execution (2) for Job 'Test_Task_1 TFOP' is: 1/23/2018 10:53:26 AM
1/23/2018 10:51:26 AM Debug SendJobStats->Ended (1/23/2018 10:51:26 AM)
1/23/2018 10:51:26 AM Err Job completed (Failure)->'Test_Task_1 TFOP'
1/23/2018 10:51:27 AM Info Task Notification completed (Success)->'General Job Error Email Notification' (1983381)
1/23/2018 10:51:27 AM Debug RemoveTaskProcess-> Could not find TaskProcess (1983381) Task: General Job Error Email Notification