rakkad
asked on
Windows Schedule Task detecting user account change errors
I have created a Windows Schedule Task in Windows 2012 which works correctly with a user to run the task.
However I am doing the schedule task as part of a automated process which will detect errors etc., so ideally I only want to check if the task has failed rather than manually checking each day.
So, as part of my tests, I changed the user account to use another user account, the issue I found was that it appeared that the task completed as the last run result was 0, but this is not correct as when I checked in the history tab for the task it in fact error'ed.
Is there a way to ensure that I am tracking and recording errors? Is there a way to record the event id errors ?
Thanks
However I am doing the schedule task as part of a automated process which will detect errors etc., so ideally I only want to check if the task has failed rather than manually checking each day.
So, as part of my tests, I changed the user account to use another user account, the issue I found was that it appeared that the task completed as the last run result was 0, but this is not correct as when I checked in the history tab for the task it in fact error'ed.
Is there a way to ensure that I am tracking and recording errors? Is there a way to record the event id errors ?
Thanks
this is what I do and maybe it will work for you--my scheduled tasks run automatically but I have the batch file piped to a daily log file and then have that log file emailed to me--it is easy to open the text attachment and see the results--all it takes is 1 double click per day. will that work for you? if so I will give you starter script to work from.
ASKER
That will be appreciated, can you give me a script to start from ? Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Was that on the right track/helpful or do you need more help?-
No more feedback so assuming question is resolved.