+ 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,490
    Thank Post
    282
    Thanked 196 Times in 167 Posts
    Rep Power
    76

    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. #2
    nicholab's Avatar
    Join Date
    Nov 2006
    Location
    Birmingham
    Posts
    1,531
    Thank Post
    4
    Thanked 100 Times in 96 Posts
    Blog Entries
    1
    Rep Power
    53
    I would just write a batch file and put it as a schedule task.

  3. #3
    enjay's Avatar
    Join Date
    Apr 2007
    Location
    Reading, Berkshire, UK
    Posts
    4,490
    Thank Post
    282
    Thanked 196 Times in 167 Posts
    Rep Power
    76
    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..."

  4. #4
    busby's Avatar
    Join Date
    Dec 2009
    Location
    manchester
    Posts
    149
    Thank Post
    38
    Thanked 15 Times in 13 Posts
    Rep Power
    12
    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.

  5. Thanks to busby from:

    enjay (17th December 2009)

  6. #5

    Join Date
    Dec 2009
    Posts
    270
    Thank Post
    6
    Thanked 33 Times in 31 Posts
    Rep Power
    15
    We use c:\windows\system32\shutdown.exe /f /r

    have no problems with it working

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