Hello,
I am having some trouble trying to get a batch file running as a scheduled SQL Agent job on our SQL server running SQL 2008 R2.
I am getting the following error when trying to run the agent job as a number of accounts (Network Service, AD SQL Server account, Network Admin account).
"The process could not be created for step 1 of job 0x843AF3CCEB903143B0AEAA88BC6457D7 (reason: 2). The step failed."
I have been hitting Google looking for an answer but not cracked this one yet. The batch file runs fine through Windows Explorer and I have tried the following:
- Granted account local security rights via secpol.msc
- Full permissions on folder where batch file is saved
- enabled xpcmdshell
Any advice gratefully received.
Thanks.