How to reboot a 2000 server everyday by Task Scheduler

Discussion in 'Microsoft Windows 2000 CMD Promt' started by Dave Patrick, Sep 1, 2004.

  1. Dave Patrick

    Dave Patrick Guest

    Dave Patrick, Sep 1, 2004
    #1
    1. Advertisements

  2. Dave Patrick

    Jonathan Guest

    Hi,

    How to reboot a 2000 server everyday by Task Scheduler

    I want get a step-by-step help

    Thank Advance

    Jonathan
     
    Jonathan, Sep 1, 2004
    #2
    1. Advertisements

  3. Using WMI and a VBS script

    'Shutdown.vbs
    set osSet = GetObject("winmgmts:").InstancesOf("Win32_OperatingSystem")
    for each os in osSet
    os.Win32Shutdown 1
    ' coment the above and uncoment the below for forced shutdown
    ' os.Win32Shutdown 4
    next
     
    Paul R. Sadowski, Sep 1, 2004
    #3
  4. Dave Patrick

    Bill Stewart Guest

    I'll ask the larger question: Why do you need to reboot it every night?

    Bill
     
    Bill Stewart, Sep 1, 2004
    #4
  5. Dave Patrick

    Jonathan Guest

    Thanks everyone

    I have finished this function using psshutdown.

    Because my ISA 2000 find an intruder from external

    so I want to reboot this server every night.

    Jonathan
     
    Jonathan, Sep 3, 2004
    #5
  6. Dave Patrick

    Bill Stewart Guest

    Hi,

    How will rebooting help?

    Bill
     
    Bill Stewart, Sep 3, 2004
    #6
  7. Dave Patrick

    Jonathan Guest

    Hi,

    You are right, maybe rebooting is unnecessary

    I find an intruder from external again this morning

    Jonathan
     
    Jonathan, Sep 6, 2004
    #7
    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.