Jump to content

Task scheduler always fails to run script at a specific time


Recommended Posts

Posted

We have a plasma screen connected to a PC showing a Powerpoint.

 

It gets turned off every night with a psshutdown script and switched on every morning with WOL, to save power and to allow a startup script to run that copies the new powerpoint over

 

Anyway, every weeknight apart from Thursday it goes off at 7pm, and always works, for which I have one task.

On Thursdays they want it off at 10pm because of after school stuff.

So I have a second task created for Thursday.

But the script never runs on a Thursday. I always get the result of 0x1 in task scheduler which I believe is a fail

 

Ive tried this now on 2 servers and it fails from both of them. I know the script works so it isnt that.

I take it, that by the 0x1 result, the script hasnt even attempted to run?

 

Anyone got any ideas? Should there be an event log entry for it? I cant find one...

Posted

Does the Thursday 10pm one work properly if you go to "Run now" by right-clicking the task? If so it must be the schedule settings, or that it is getting shutdown before the script runs at 10pm.

 

It might be better to schedule the native Windows "shutdown -s -f" command as it might (not sure though) log the events.

Posted

Yeh just tried it and it works when I do run now

 

Also when its turned off and I do run now, the result changes to 0x1

 

So I suppose that answers it - someone is turning it off

 

So simple :oops:

 

Cheers

  • 12 years later...
Posted

Hello,

I have recently issue with the status 0x1 and after long searching on google found that windows task scheduler need to be run automatically on schedule if you want to not get the error “last run result(0X1 )” . If you try on first time to run the task manually, will get this error. Check this solution to be very helpful to troubleshoot this error.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...