+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
Network and Classroom Management Thread, psshutdown runs out of steam in Technical; To prevent it stopping at a machine already shut down you could always use a Magic Packet utility to turn ...
  1. #16

    Join Date
    Apr 2008
    Posts
    92
    Thank Post
    13
    Thanked 13 Times in 12 Posts
    Rep Power
    11
    To prevent it stopping at a machine already shut down you could always use a Magic Packet utility to turn all the machines on first, then run the shutdown script.

    I just use a batch file with the SHUTDOWN command. It does hang if the machine is already off, but soon moves onto the next computer in the list.
    The problem with this, both with the magic packet to wake the PCs first, and the shutdown batch script, is you need all the machine names/MAC addresses, whereas telling each machine to shut itself down would avoid this issue.

    Peter

  2. IDG Tech News

  3. #17
    Alis_Klar's Avatar
    Join Date
    Oct 2007
    Location
    East Birmingham
    Posts
    158
    Thank Post
    63
    Thanked 14 Times in 4 Posts
    Rep Power
    12
    Quote Originally Posted by maniac View Post
    Easiest way I've found of shutting down machines is to create two batchfiles.

    Set one to run at machine startup with the commands;

    Code:
    at /DELETE /YES
    at 21:00 /every:M,T,W,Th,F "\\domain\netlogon\shutdwn.bat"
    This adds a scheduled task that calls a script called shutdwn.bat on the netlogon share at 9:00 pm every day. You can adjust this as you need to of course.

    Then in the shutdwn.bat file, simply use this command

    Code:
    shutdown -s -f -t 60 -c "End of day shutdown. Please save your work now, this workstation will shutdown in 1 Minute. This cannot be cancelled."
    Which obviously calls the windows built in shutdown command, and displays the appropreate message.

    This works like a charm for us and has done for the last year. It's pretty flexible as well as if you ever need to change or cancel it you can simply change the shutdwn.bat file accordingly. Every month or so we make it call defrag insted of shutdown.

    Incidently, do not name the batchfile 'shutdown.bat' else it will run itself in an endless loop!

    Mike.
    I think we'll use this but we'll make different batch files for each room so we can alter the shutdown time for a particular room. We already have each room in it's own OU so it should be easy!

    The only issue with this approach vs a server issued shutdown is if you need to keep the machines on later than usual at late notice but it does get around the speed slowdown issues where the server hits machines that are already off.

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. PsShutdown help needed!
    By tech_guy in forum Windows
    Replies: 13
    Last Post: 18th February 2010, 12:29 AM
  2. Psshutdown problem
    By SpuffMonkey in forum Scripts
    Replies: 7
    Last Post: 6th November 2008, 02:59 PM
  3. Logging psshutdown?
    By gshaw in forum Windows
    Replies: 3
    Last Post: 23rd April 2008, 08:11 PM
  4. Pre-terminated fibre runs
    By localzuk in forum Hardware
    Replies: 6
    Last Post: 15th December 2007, 01:23 AM
  5. MAC OS X 10.4.8 runs on any PC
    By ITWombat in forum Mac
    Replies: 4
    Last Post: 26th October 2006, 11:48 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •