I also would like to know how I can translate the error message string into the corresponding hexadecimal code.
You can use calculator to convert the decimal codes to hex codes. In the view, select Programmer
Dec = 2147943729 , Hex = 80070531
When you convert that to word, that would be 1329
You can use below command to translate the error message
>net helpmsg word
C:\Users\Santosh>net helpmsg 1329
This user isn't allowed to sign in to this computer.
So, check whether the service account used for running task has log on rights on the server. Also make sure, the account has rights to log on as batch job.
And sorry, the error which I had was similar one but not the one which you have mentioned.