+ Post New Thread
Results 1 to 5 of 5
How do you do....it? Thread, PSShutdown to Restart Server in Technical; I'm trying to get psshutdown script scheduled to restart the server on a weekly basis (I know this isn't accepted ...
  1. #1
    enjay's Avatar
    Join Date
    Apr 2007
    Location
    Reading, Berkshire, UK
    Posts
    4,342
    Thank Post
    267
    Thanked 190 Times in 162 Posts
    Rep Power
    72

    PSShutdown to Restart Server

    I'm trying to get psshutdown script scheduled to restart the server on a weekly basis (I know this isn't accepted practice, but trust me, it makes everything run smoother!). I have got psshutdown to work fine on workstations, but can't get the server to execute the command on itself - when I try, it tells me "error communicating with the psshutdown service on local system". Any ideas?

  2. IDG Tech News
  3. #2
    nicholab's Avatar
    Join Date
    Nov 2006
    Location
    Birmingham
    Posts
    1,240
    Blog Entries
    1
    Thank Post
    3
    Thanked 82 Times in 78 Posts
    Rep Power
    34
    I would just write a batch file and put it as a schedule task.

  4. #3
    enjay's Avatar
    Join Date
    Apr 2007
    Location
    Reading, Berkshire, UK
    Posts
    4,342
    Thank Post
    267
    Thanked 190 Times in 162 Posts
    Rep Power
    72
    Quote Originally Posted by nicholab View Post
    I would just write a batch file and put it as a schedule task.
    That's what I'm doing - trouble is, when the batch file executes, I get the error message above. I'm using the following command, which works fine if directed to a remote machine:
    psshutdown -r -c -f -m "The server is about to restart..."

  5. #4
    busby's Avatar
    Join Date
    Dec 2009
    Location
    manchester
    Posts
    139
    Thank Post
    36
    Thanked 13 Times in 12 Posts
    Rep Power
    10
    I use this comand for remote workstations.

    shutdown -m \\SUITE00 -r -t 30 -c "Technician reqiures this machine to restart thank you for your patience"

    and this for server restart

    shutdown -r


    works a treat! love using it when a child is on the machine and has been told a number of times to quite down by the teacher.

  6. Thanks to busby from:

    enjay (17th December 2009)

  7. #5

    Join Date
    Dec 2009
    Posts
    171
    Thank Post
    4
    Thanked 20 Times in 19 Posts
    Rep Power
    10
    We use c:\windows\system32\shutdown.exe /f /r

    have no problems with it working

  8. Thanks to Firefox from:

    enjay (17th December 2009)

SHARE:
+ Post New Thread

Similar Threads

  1. Odd little unexpected server restart issue...
    By cheredenine in forum Hardware
    Replies: 2
    Last Post: 25th November 2009, 09:35 AM
  2. Server Restart
    By Gibson335 in forum Hardware
    Replies: 8
    Last Post: 23rd January 2009, 09:40 AM
  3. Psshutdown problem
    By SpuffMonkey in forum Scripts
    Replies: 7
    Last Post: 6th November 2008, 01:59 PM
  4. Logging psshutdown?
    By gshaw in forum Windows
    Replies: 3
    Last Post: 23rd April 2008, 08:11 PM
  5. Invalid boot.ini on Server after restart....
    By mullet_man in forum Windows
    Replies: 4
    Last Post: 16th July 2007, 03:16 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
  •