Task scheduler always fails to run script at a specific time
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...
Re: Task scheduler always fails to run script at a specific time
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.
Re: Task scheduler always fails to run script at a specific time
Often the best way to fix these problems is to re-create the schedule... also check the login credentials that you are using.
Re: Task scheduler always fails to run script at a specific
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
Re: Task scheduler always fails to run script at a specific time
Lol, how helpful of them :lol: