+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 28
Windows Thread, Shutting Down computers remotely in Technical; Does anyone know of a free software that can be installed on a Windows 2003 server to set a schedule ...
  1. #1

    Join Date
    Mar 2007
    Location
    Leicestershire
    Posts
    274
    Thank Post
    4
    Thanked 3 Times in 3 Posts
    Rep Power
    16

    Shutting Down computers remotely

    Does anyone know of a free software that can be installed on a Windows 2003 server to set a schedule task to shut down computers at night/start them in the morning?

    Thanks

  2. #2

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241

  3. #3

    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    2,235
    Thank Post
    55
    Thanked 278 Times in 186 Posts
    Rep Power
    134
    This scheduled batch file does it for us

    echo "Starting PC Shutdown script" > "C:\Winapps\Logoffs\shutdown.log"

    echo "Starting LimitLogon clearout" >> "C:\Winapps\Logoffs\shutdown.log"

    "C:\Program Files\LimitLogin\llogincmd.exe" /c

    echo "Starting PC Shutdown" >> "C:\Winapps\Logoffs\shutdown.log"

    C:\winapps\logoffs\PSShutdown.exe -c -k @PCList.txt -f -t 30 >> C:\Winapps\Logoffs\shutdown.log


    echo "Completed" >> "C:\Winapps\Logoffs\shutdown.log"

    You just need psshutdown (free download)

  4. #4
    Galway's Avatar
    Join Date
    Jun 2007
    Location
    West Yorkshire
    Posts
    1,342
    Thank Post
    9
    Thanked 305 Times in 214 Posts
    Rep Power
    100
    PsShutdown

    Easy enough to do ...

    Create a text file of the machine names to shutdown, for each room for example, then name it room1.txt

    Then create a bat with the command, here is the one I use.

    psshutdown -k -m "Computer will soon power down, save NOW" @room1.txt

    There are switches that can be used to do the desired function you require.

    Usage: psshutdown [[\\computer[,computer[,..] | @file [-u user [-p psswd]]] -s|-r|-h|-d|-k|-a|-l|-o [-f] [-c] [-t nn|h:m] [-n s] [-v nn] [-e [u|p]:xx:yy] [-m "message"]

    - Displays the supported options.
    computer Perform the command on the remote computer or computers specified. If you omit the computer name the command runs on the local system, and if you specify a wildcard (\\*), the command runs on all computers in the current domain.
    @file Run the command on each computer listed in the text file specified.
    -u Specifies optional user name for login to remote computer.
    -p Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.
    -a Aborts a shutdown (only possible while a countdown is in progress).
    -c Allows the shutdown to be aborted by the interactive user.
    -d Suspend the computer.
    -e Shutdown reason code.
    Specify 'u' for user reason codes and 'p' for planned shutdown reason codes.
    xx is the major reason code (must be less than 256).
    yy is the minor reason code (must be less than 65536).
    -f Forces all running applications to exit during the shutdown instead of giving them a chance to gracefully save their data.
    -h Hibernate the computer.
    -k Poweroff the computer (reboot if poweroff is not supported).
    -l Lock the computer.
    -m This option lets you specify a message to display to logged-on users when a shutdown countdown commences.
    -n Specifies timeout in seconds connecting to remote computers.
    -o Logoff the console user.
    -r Reboot after shutdown.
    -s Shutdown without power off.
    -t Specifies the countdown in seconds until the shutdown (default: 20 seconds) or the time of shutdown (in 24 hour notation).
    -v Display message for the specified number of seconds before the shutdown. If you omit this parameter the shutdown notification dialog displays and specifying a value of 0 results in no dialog.


    I run the bat on a scheduled task every night, works well.

  5. #5
    Friez's Avatar
    Join Date
    Dec 2006
    Posts
    839
    Thank Post
    22
    Thanked 22 Times in 21 Posts
    Rep Power
    23
    Windows actually comes with a tool for shutting down computers, I'm still amazed at the amount of 3rd party solutions out there

    http://www.microsoft.com/windowsxp/u...mmandline.mspx

    Examples:

    Code:
    shutdown -m \\somecomputer -s -t 120 -c "All systems are shutting down, please save your work."
    This will shut down the machine after a 120 second countdown with the message supplied. We usually run this to give straggling users a chance to save their stuff before we force them off.

    Code:
    shutdown -m \\somecomputer -s -t 1
    We simply reduce the time to 1 second if we're pretty sure we want the machines off in next to no time

    Code:
    shutdown -m \\somecomputer -r -t 1
    Restarts the specified machine immediately.

    Code:
    shutdown -m \\somecomputer -a
    Abort a shutdown after it has launched (provided you get in on time)

    Throw some of this into a batch file (say: entire rooms) and you have yourself one powerful offswitch and no additional software needed

    Of course if you want to do some stuff like locking pc's e.t.c. thats a different kettle of fish (and will need tools as mentioned by others above), but you don't need anything more if you just want to shutdown/restart things.
    Last edited by Friez; 9th September 2008 at 01:26 PM.

  6. #6

    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    2,235
    Thank Post
    55
    Thanked 278 Times in 186 Posts
    Rep Power
    134
    I thought standard "shutdown" choked if the PC was running a screensaver - which would make it a bit tricky?

  7. #7
    jmcdermott's Avatar
    Join Date
    Feb 2008
    Location
    Cornwall
    Posts
    171
    Thank Post
    16
    Thanked 42 Times in 34 Posts
    Rep Power
    21

    my way

    I manage to achive this by creating a vb script that executes the windows shutdown comand to shutdown the machines, and a free util called mc-wol to wake them up.

    shtudown -s -t 01 -m \\'computer name'
    mc-wol ma:ca:dd:re:ss
    Attached Images Attached Images

  8. #8
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    51

    Thumbs up

    I wrote a program this week to handle this kind of problem. What we wanted was an automatic way to shut down the whole site but with a few extra requirements, namely:

    • 100% automatic, no editing lists of computers
    • Full GUI, no command prompt, no VBS
    • Exclusion list for admin computers + servers
    • Must run as a scheduled task


    The coolest feature of the tool is that it's always up-to-date with the computers that need shutting down. On startup, it queries the PackageControl folder and gets a list of all the domain computers from there, no servers in that list either so no danger of shutting them down.

    Second neat thing, it uses WMI both to do the shutdowns and to check which computers are online before starting the shutdown process. That means no waiting for ages while the command prompt sits there, waiting to timeout.

    Also, there's a full GUI showing the computers in the shutdown queue and any computers that failed to shutdown.

    There's no schedule feature, it just runs as a scheduled task. It's RM only at the moment because it depends on the PackageControl folder for its information. If any RM users would find it useful, PM me for a copy.
    Last edited by bizzel; 9th September 2008 at 06:08 PM.

  9. #9
    Heebeejeebee's Avatar
    Join Date
    Nov 2006
    Location
    Intergalactic Cruise
    Posts
    1,055
    Thank Post
    69
    Thanked 77 Times in 61 Posts
    Rep Power
    35
    Quote Originally Posted by SpuffMonkey View Post
    I thought standard "shutdown" choked if the PC was running a screensaver - which would make it a bit tricky?
    Doesn't seem to on ours.

    HBJB

  10. #10
    bizzel's Avatar
    Join Date
    Jul 2007
    Location
    Cambridge
    Posts
    654
    Thank Post
    102
    Thanked 204 Times in 72 Posts
    Rep Power
    51
    I've seen it hang when the screensaver is active. It's not permanent but takes about 30 seconds of just sitting the logon background before it shuts down.

  11. #11

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,156
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    124
    Quote Originally Posted by Friez View Post
    Windows actually comes with a tool for shutting down computers, I'm still amazed at the amount of 3rd party solutions out there
    Always more than one way to do a job :-)

    Earler versions of Windows didn't come with shutdown (I think it was first in 2000 but it might not have been there until XP) so other techniques were needed.

    Using scripts and WMI lets you do things like checking if the machine is switched on and needs switching off; checking the OS so you don't shut down servers and so on.

    If you want a shutdown at a relatively fixed time each day then you can just schedule a task to run on the local machine at the appropriate time - perhaps changing the time by using a machine startup script.

  12. #12
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,456
    Thank Post
    10
    Thanked 494 Times in 434 Posts
    Rep Power
    112
    I schedule beyondexec shutdown (BeyondExec - Spawn Processes or Shutdown Remote Windows NT/2000/XP WorkStations) with the startup script.

    If you do it with AT (NOT schtasks which can't do interactive properly) then the user gets a popup asking if they want to shutdown and can abort it, popup is also displayed on machines that are not logged in which is nice.

  13. #13
    enjay's Avatar
    Join Date
    Apr 2007
    Location
    Reading, Berkshire, UK
    Posts
    4,488
    Thank Post
    282
    Thanked 196 Times in 167 Posts
    Rep Power
    75
    I'm resurrecting this, as our current method of turning computers off (BeyondExec) no longer seems able to touch locked computers.

    Reading other threads on this, there seems to be some dispute over whether or not PSShutdown can do this in a single pass - what are people's experiences? Also, does PSShutdown offer users the ability to cancel a shutdown if they are still working?

  14. #14

    JJonas's Avatar
    Join Date
    Jan 2008
    Location
    North Walsham, Norfolk
    Posts
    3,106
    Thank Post
    386
    Thanked 432 Times in 320 Posts
    Rep Power
    383
    EduGeek Shutdownertron

    dont know about locked computers but you can set this up to allow users to stop the shutdown

  15. #15

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Quote Originally Posted by JJonas View Post
    EduGeek Shutdownertron

    dont know about locked computers but you can set this up to allow users to stop the shutdown
    If the machine's locked during the warning period, the user will see it when they unlock. If it's still locked when this runs out, the shutdown will *not* take place. One of the new features in the new version is an override for this, so shutdown will be forced even while the desktop is locked.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Randomly shutting down
    By Lesley_tech in forum Windows
    Replies: 20
    Last Post: 20th June 2008, 12:40 PM
  2. Replies: 2
    Last Post: 1st April 2008, 10:49 PM
  3. Shutting down stations at certain time????
    By marvin in forum Windows
    Replies: 3
    Last Post: 13th March 2008, 09:01 AM
  4. Replies: 11
    Last Post: 16th October 2007, 02:37 PM
  5. pcs shutting down Whats causing it ?????
    By goodhead in forum Windows
    Replies: 14
    Last Post: 4th March 2007, 07:30 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
  •