+ Post New Thread
Results 1 to 5 of 5
Windows Thread, Task scheduler always fails to run script at a specific time in Technical; We have a plasma screen connected to a PC showing a Powerpoint. It gets turned off every night with a ...
  1. #1

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    49

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

  2. #2

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,400
    Thank Post
    636
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319

    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.

  3. #3

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    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.

  4. #4

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    49

    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 ops:

    Cheers

  5. #5

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,400
    Thank Post
    636
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319

    Re: Task scheduler always fails to run script at a specific time

    Lol, how helpful of them

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 15
    Last Post: 19th September 2007, 10:46 PM
  2. Replies: 9
    Last Post: 10th May 2007, 10:13 AM
  3. adding a task to windows scheduler
    By timbo343 in forum Scripts
    Replies: 1
    Last Post: 3rd April 2007, 03:41 PM
  4. Java Script fails to work on one user profile!
    By pmassingham in forum Windows
    Replies: 0
    Last Post: 29th June 2006, 07:32 AM
  5. Startup script time-out gotcha aargh!!
    By NetworkGeezer in forum Windows
    Replies: 7
    Last Post: 1st June 2006, 05:13 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •