We help IT Professionals succeed at work.

Windows Schedule Task detecting user account change errors

rakkad
rakkad asked
on
61 Views
Last Modified: 2017-06-04
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
Comment
Watch Question

Lionel MMSmall Business IT Consultant
CERTIFIED EXPERT

Commented:
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.

Author

Commented:
That will be appreciated, can you give me a script to start from ? Thanks
Small Business IT Consultant
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Lionel MMSmall Business IT Consultant
CERTIFIED EXPERT

Commented:
Was that on the right track/helpful or do you need more help?-
Lionel MMSmall Business IT Consultant
CERTIFIED EXPERT

Commented:
No more feedback so assuming question is resolved.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.