how to use shutdown.exe as a scheduled task when server is locked?

Discussion in 'Windows Server' started by JimK, Jun 8, 2006.

  1. JimK

    JimK Guest

    Hello,

    I have a few servers I need to have rebooted every week @ the same time.
    I've set up a scheduled task to call a batch file I created that has the
    following syntax

    shutdown /l "the server is shutting down automatically" /y /c

    the scheduled task runs fine when I force it to run and it runs fine @ the
    scheduled time when the console session is not locked, but if someone has
    locked the console session the scheduled task does not run.

    How can I force this to run?

    Thanks.
     
    JimK, Jun 8, 2006
    #1
    1. Advertisements

  2. JimK

    Lonnie Guest

    hey I was
     
    Lonnie, Jun 8, 2006
    #2
    1. Advertisements

  3. JimK

    JimK Guest

    disregard this...I was using syntax from shutdown.exe for 2000, 2003 has a
    force switch /f

    Thanks.
     
    JimK, Jun 8, 2006
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.