General discussion

  • Creator
    Topic
  • #2307422

    shut down script needed

    Locked

    by kmerrillt ·

    Hi. I’m looking for a script to use on XP Home to shut
    down the computer using the task scheduler. There are
    presently 2 profiles on the pc. Owner who has admin
    rights and family which does not.
    I want to be able to schedule the pc to shut down at a
    specified time while FAMILY is logged on. I’ve tried the
    old TSSHUTDOWN but it only works under OWNER. I’ve tried
    changing the RUN AS as well as setting it up under both
    both profiles. No luck. With past operating systems you
    could use a system batch file. This is not recognized in
    XP.
    Also, is there a way to change the default coding in
    TSSHUTDOWN? When it runs it gives the user a chance to
    abort within 60 seconds. Kids aren’t stupid….
    Any help here would be nice. I’ve run out of ideas.

All Comments

  • Author
    Replies
    • #2746581

      Reply To: shut down script needed

      by joseph moore ·

      In reply to shut down script needed

      XP does come with SHUTDOWN.EXE

      Here is the help screen on it:

      C:\>shutdown /?
      Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c ”
      omment”] [-d up:xx:yy]

      No args Display this message (same as -?)
      -i Display GUI interface, must be the first option
      -l Log off (cannot be used with -m option)
      -s Shutdown the computer
      -r Shutdown and restart the computer
      -a Abort a system shutdown
      -m \\computername Remote computer to shutdown/restart/abort
      -t xx Set timeout for shutdown to xx seconds
      -c “comment” Shutdown comment (maximum of 127 characters)
      -f Forces running applications to close without wa
      ning
      -d [u][p]:xx:yy The reason code for the shutdown
      u is the user code
      p is a planned shutdown code
      xx is the major reason code (positive integer l
      ss than 256)
      yy is the minor reason code (positive integer l
      ss than 65536)

    • #2745466

      Reply To: shut down script needed

      by kmerrillt ·

      In reply to shut down script needed

      This question was closed by the author

Viewing 1 reply thread