+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 21
How do you do....it? Thread, Remotely Shutdown/Restart PC's at night in Technical; We've been looking at ways to do this to save power/rollout software and to stop problems with files being skipped ...
  1. #1
    flyinghaggis's Avatar
    Join Date
    Jan 2006
    Posts
    1,068
    Thank Post
    108
    Thanked 78 Times in 60 Posts
    Rep Power
    116

    Remotely Shutdown/Restart PC's at night

    We've been looking at ways to do this to save power/rollout software and to stop problems with files being skipped when our backup runs (due the users leaving themselves logged on all night with documents open). That and it'll stop people from leaving desktop PC's up for months without ever rebooting them!
    We've looked at using sysinternals PSShutDown running as a script from the server/locally and also considered deploying a scheduled task to the client workstations (via wininstall) but wondered if anyone else had any suggestions for the best way to go about doing this?

  2. #2
    Guest

    Re: Remotely Shutdown/Restart PC's at night

    I just use SHUTDOWN.EXE in a batch file, via scheduled task.

    For remote startup I enable WOL on the PCs and use a utility wol.exe plus batch file which interagates a CSV file with the PCs MAC addresses. You can the run the script to wake up different groups of computers.

    If you want a copy, let me know

  3. #3
    krb548's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    44
    Thank Post
    2
    Thanked 3 Times in 3 Posts
    Rep Power
    20

    Re: Remotely Shutdown/Restart PC's at night

    I recently started using the PSShutdown tool.
    It appears to be working ok but I have noticed a problem with one pc.
    If for whatever reason Windows XP trys to syncronise offline files and it fails to complete the task for any reason it leaves the pc on displaying the error but other than that it works fine here.

  4. #4
    StewartKnight's Avatar
    Join Date
    Jun 2005
    Posts
    1,587
    Thank Post
    2
    Thanked 27 Times in 21 Posts
    Rep Power
    31

    Re: Remotely Shutdown/Restart PC's at night

    I like the computer to be on overnight, because Sophos does a scan at 2am. I use "shadow volume" now, so that all files are "backed up", and if the occasional document is still open, it'll get backed up the next evening anyway!

  5. #5

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,779
    Thank Post
    960
    Thanked 1,378 Times in 842 Posts
    Blog Entries
    1
    Rep Power
    456

    Re: Remotely Shutdown/Restart PC's at night

    Yeh we are having a play with PSShutdown right now. Seems good.

  6. #6
    fooby's Avatar
    Join Date
    Dec 2005
    Posts
    351
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    20

    Re: Remotely Shutdown/Restart PC's at night

    This is in our startup script here, serves a dual purpose. One to schedule the shutdown of the pc's (and so if they come back on, it switches them off again) and it clears the scheduled task list (just in case someone gets one in there )

    fooby

    Code:
    schtasks /create /sc daily /st 18:00:00 /tn "Shutdown at 1800" /tr "shutdown -s -t 60 -c \"This computer is scheduled to automatically shutdown at this time.          You have 60 seconds to save all your work and logoff.\"" /ru system
    schtasks /create /sc daily /st 22:00:00 /tn "Shutdown at 2200" /tr "shutdown -s -t 60 -c \"This computer is scheduled to automatically shutdown at this time.          You have 60 seconds to save all your work and logoff.\"" /ru system
    schtasks /create /sc daily /st 00:00:00 /tn "Shutdown at 0000" /tr "shutdown -s -t 60 -c \"This computer is scheduled to automatically shutdown at this time.          You have 60 seconds to save all your work and logoff.\"" /ru system
    schtasks /create /sc daily /st 01:00:00 /tn "Shutdown at 0100" /tr "shutdown -s -t 60 -c \"This computer is scheduled to automatically shutdown at this time.          You have 60 seconds to save all your work and logoff.\"" /ru system
    schtasks /create /sc daily /st 03:00:00 /tn "Shutdown at 0300" /tr "shutdown -s -t 60 -c \"This computer is scheduled to automatically shutdown at this time.          You have 60 seconds to save all your work and logoff.\"" /ru system
    schtasks /create /sc daily /st 05:00:00 /tn "Shutdown at 0500" /tr "shutdown -s -t 60 -c \"This computer is scheduled to automatically shutdown at this time.          You have 60 seconds to save all your work and logoff.\"" /ru system

  7. #7

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,417
    Thank Post
    644
    Thanked 965 Times in 665 Posts
    Blog Entries
    2
    Rep Power
    328

    Re: Remotely Shutdown/Restart PC's at night

    If you want to be able to reboot a selected group of workstations (to pick up an update) you can get hold of my RPKiller script from this here forum... just do a search.

  8. #8
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    271
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    Re: Remotely Shutdown/Restart PC's at night

    I use poweroff: http://users.pandora.be/jbosman/poweroff/poweroff.htm and wakeonlan as has been said.

    Code:
    poweroff shutdown -remote	 <computername>	 -use_nt -warn -warntime 60 -msg "Your pc will power off in 60 seconds\nPlease save your work" -force -quiet

  9. #9

    SpuffMonkey's Avatar
    Join Date
    Jul 2005
    Posts
    2,265
    Thank Post
    55
    Thanked 284 Times in 190 Posts
    Rep Power
    135

    Re: Remotely Shutdown/Restart PC's at night

    This is what I do - about 30 minutes before the backups start

    "E:\program files\PSShutdown\PSShutdown.exe" @PCList.txt -o -f > "E:\program files\psshutdown\logout.log"
    "C:\Program Files\LimitLogin\llogincmd.exe" /c

    PCList.txt is just a text file with a list of PC names in, and it dumps output into a file just in case I want to have a look.

  10. Thanks to SpuffMonkey from:

    Phildw (17th October 2012)

  11. #10

    Join Date
    Nov 2005
    Location
    Middlesbrough
    Posts
    402
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Remotely Shutdown/Restart PC's at night

    I just use "shutdown -i" to invoke interactive mode and select a group of machines by name to shutdown. Doesn't take too much time to do!

    I've got a problem with WOL, our switches discard the MAC table after a couple of hours so in the mornings there's no MAC address info on the switches so WOL doesn't work

    Really need to look into that!

  12. #11

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,308
    Thank Post
    242
    Thanked 1,589 Times in 1,266 Posts
    Rep Power
    344

    Re: Remotely Shutdown/Restart PC's at night

    I use Shutdown -i like Indie, however this only works on XP Professional machines and not 2000 Professional.

    Right click the desktop and select New > Shortcut

    The fields should read as follows:

    Target: %windir%\System32\shutdown.exe -i

    Start in: %windir%\System32\

    Now apply changes. Double click the shortcut and you can specify any number of XP machines on your domain to restart or shutdown. I use this everynight to shutdown XP machines

  13. #12
    Sirbendy's Avatar
    Join Date
    Nov 2005
    Posts
    2,298
    Thank Post
    8
    Thanked 203 Times in 154 Posts
    Rep Power
    111

    Re: Remotely Shutdown/Restart PC's at night

    look at Beyondexec....I use that. Does much more besides.. You'll need to google it though.

  14. #13
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42

    Re: Remotely Shutdown/Restart PC's at night

    Looks useful.. will check it out.

  15. #14

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,995
    Thank Post
    3,539
    Thanked 1,111 Times in 1,017 Posts
    Rep Power
    374

    Re: Remotely Shutdown/Restart PC's at night

    From experts exchange :

    The icon simply executes a trivial batch file that has one line per PC to send a magic packet.

    Looks like this:

    mc-wol aa:bb:cc:dd:ee:ff
    mc-wol aa:bb:cc:dd:ee:ff
    mc-wol aa:bb:cc:dd:ee:ff

    where the aa:bb:cc:dd:ee:ff on each line is the NIC address for the different computers I want turned on.

    mc-wol is a simple utility that just sends a magic packet -- available free here: http://www.matcode.com/wol.htm

    They also have a free utility (mcgetmac) to show you the NIC address for each of your PC's.

    There is wake on lan and also remote shutdown Both free utils and you can get a batch file to use them as far as I am aware by using the mac addresses of the NICS.

  16. Thanks to mac_shinobi from:

    Phildw (17th October 2012)

  17. #15
    ShorehamGeek's Avatar
    Join Date
    Feb 2006
    Location
    Shoreham
    Posts
    87
    Thank Post
    19
    Thanked 21 Times in 18 Posts
    Rep Power
    25

    Re: Remotely Shutdown/Restart PC's at night

    Quote Originally Posted by gecko
    From experts exchange

    The icon simply executes a trivial batch file that has one line per PC to send a magic packet.

    Looks like this

    mc-wol aabbccddeeff
    mc-wol aabbccddeeff
    mc-wol aabbccddeeff

    where the aabbccddeeff on each line is the NIC address for the different computers I want turned on.

    mc-wol is a simple utility that just sends a magic packet -- available free here http//www.matcode.com/wol.htm

    They also have a free utility (mcgetmac) to show you the NIC address for each of your PC's.

    There is wake on lan and also remote shutdown ) Both free utils and you can get a batch file to use them as far as I am aware by using the mac addresses of the NICS.
    Top tip Gecko

    Just tested on one PC - but it looks very promising. Hmmmm, this would replace the £600 of WOL software that F-S where going to charge.

    Many thanks.



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

Similar Threads

  1. csi last night
    By russdev in forum General Chat
    Replies: 5
    Last Post: 8th November 2008, 11:40 AM
  2. Entertaining Web link for Friday night!
    By maniac in forum Jokes/Interweb Things
    Replies: 4
    Last Post: 17th November 2007, 05:19 PM
  3. Replies: 15
    Last Post: 8th November 2007, 07:21 PM
  4. House of Horrors last night (ITV)
    By MK-2 in forum General Chat
    Replies: 16
    Last Post: 24th May 2007, 03:06 PM
  5. USB devices cause computer to restart
    By Midget in forum Hardware
    Replies: 0
    Last Post: 16th April 2007, 11:55 AM

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
  •