Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


rsa-inerlink
2017-07-31T16:16:32Z
Hello,
I run a multitude of tasks, which basically call C:\Windows\syswow64\cscript.exe and executes a different vbs under each of those tasks. This process has been working successfully for a long time. Today I started to notice that tasks fail in VC with "Exception in Task: Non zero exit code"
When I check Windows event viewer I see mutilate entries like the following:
Faulting application name: cscript.exe, version: 5.8.9200.16734, time stamp: 0x52560eea
Faulting module name: KERNELBASE.dll, version: 6.2.9200.21941, time stamp: 0x5792e533
Exception code: 0xc0000142
Fault offset: 0x000683ba
Faulting process id: 0x1010
Faulting application start time: 0x01d30a161aa58c87
Faulting application path: C:\Windows\syswow64\cscript.exe
Faulting module path: KERNELBASE.dll
Report Id: 58626e1c-7609-11e7-94fd-0a90e26bc317
Faulting package full name:
Faulting package-relative application ID:


This is on a Windows 2012 standard server x64
If I run the exact same script from CMD it works without any issues.

this is causing major problems. Please help...
Sponsor
Forum information
rsa-inerlink
2017-07-31T16:30:12Z
I found a way to fix it for now but I would like to understand why this happened.
The way I fix it is by changing the Run Task as option in each task to No Credential and check the Use Shell execute option.
I do not want to have to change all my 100s of tasks manually.
Support
2017-07-31T21:40:02Z
Sounds like a permission problem. Try editing the Credential you use with options;

CreateProcessAsUserW + LOGON_BATCH. You can see these settings when editing the Credential if you enable Extended debugging in Server settings->Log.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top