Cannot run batch file in Task Scheduler which runs Python program.
I have Windows 10, we have a network and I log into my laptop with a network Active Directory userid.
I have Task Manager v1.0. No idea why the version is so low for Windows 10.
When I run a simple batch file called test.bat:
echo This is a test >> “C:UsersMYUSEROneDrive – COMPDocumentsPythonProjectsCOMPTestProformalogtest.txt”
It runs fine.
But when I run another batch file called godailyauto.bat in the same directory, which calls a Python program, I get this error:
“Task Scheduler failed to start “crProformaTest” task for user “COMPANYMYUSER”. Additional Data: Error Value: 2147942667.”
I have the task:
Set to use my username and only run if I am logged on, to reduce potential problems. It is not set to run with Highest Privileges. I tried that and it didn’t work either. On the Task Settings tab I have checked “Allow task to run on demand”. The task starts but gets an error.
How do I get godailyauto.bat to run properly from Task Scheduler?
Do I need to install updates for Windows Task Scheduler?
Thank you.
I have Windows 10, we have a network and I log into my laptop with a network Active Directory userid.I have Task Manager v1.0. No idea why the version is so low for Windows 10. When I run a simple batch file called test.bat: echo This is a test >> “C:UsersMYUSEROneDrive – COMPDocumentsPythonProjectsCOMPTestProformalogtest.txt” It runs fine. But when I run another batch file called godailyauto.bat in the same directory, which calls a Python program, I get this error: “Task Scheduler failed to start “crProformaTest” task for user “COMPANYMYUSER”. Additional Data: Error Value: 2147942667.” I have the task:Set to use my username and only run if I am logged on, to reduce potential problems. It is not set to run with Highest Privileges. I tried that and it didn’t work either. On the Task Settings tab I have checked “Allow task to run on demand”. The task starts but gets an error. How do I get godailyauto.bat to run properly from Task Scheduler? Do I need to install updates for Windows Task Scheduler? Thank you. Read More