• HEXUS
  • HEXUS.tv
  • channel
  • gaming
  • lifestyle
  • trust
  • community
  • ESReality
  • HEXUS.community discussion forums

    Welcome to the HEXUS.community discussion forums forums.

    You are currently viewing our boards as a guest which gives you limited access to view most discussions and other features. By joining our free community you will have access to post topics, respond to polls and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Help - technical & advisory

    Help - technical & advisory Got a problem and need help fast? Shout it here! For any technical based queries Add RSS Feed

    Reply
     
    LinkBack Thread Tools
    Old 02-11-2009, 10:24 AM   #1 (permalink)
    Member
     
    Join Date: Nov 2007
    Posts: 164
    Thanks: 33
    Thanked 1 Time in 1 Post
    remote shutdown script/tool

    Hi guys,

    I’m after a program or a script which at a certain time on set days (Monday - Friday @ 6:30) that will send from a server or computer system will sent out a signal across the whole network shutting down the computer in idle , logged off, sleep or locked state ( basically any system that is running). Does such thing exist if??? i dont mind linux or windows based anything that will do the job

    Thanks guys
    fortune2k is offline   Reply With Quote
    Old 02-11-2009, 10:58 AM   #2 (permalink)
    Senior Member
     
    burble's Avatar
     
    Join Date: May 2007
    Posts: 662
    Thanks: 0
    Thanked 31 Times in 31 Posts
    burble's system
    Re: remote shutdown script/tool

    Ignoring the obvious question of why a weekly reboot is necessary...

    For Windows machines you could use the 'shutdown' command - have a look in the Windows 2003 resource kit.

    D:\>shutdown
    Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]

    No args Display this message (same as -?)
    -i Display GUI interface, must be the first option
    -l Log off (cannot be used with -m option)
    -s Shutdown the computer
    -r Shutdown and restart the computer
    -a Abort a system shutdown
    -m \\computername Remote computer to shutdown/restart/abort
    -t xx Set timeout for shutdown to xx seconds
    -c "comment" Shutdown comment (maximum of 127 characters)
    -f Forces running applications to close without warning
    -d [u][p]:xx:yy The reason code for the shutdown
    u is the user code
    p is a planned shutdown code
    xx is the major reason code (positive integer less than 256)
    yy is the minor reason code (positive integer less than 65536)

    D:\>

    For linux machines one option would be to either run the command from a linux machine or have Cygwin installed on a Windows box. You can then pass commands using ssh. For example:

    Code:
    ssh username@servertoberebooted shutdown -r now "Scheduled reboot"
    
    Or some variant using sudo. Obviously this requires that you can login to the box using 'username' without being prompted for a password, have a read of public/private key authentication (the ssh-keygen command is your friend) to get that working.

    burble is offline   Reply With Quote
    Old 02-11-2009, 11:04 AM   #3 (permalink)
    Member
     
    Join Date: Nov 2007
    Posts: 164
    Thanks: 33
    Thanked 1 Time in 1 Post
    Re: remote shutdown script/tool

    well in ourt company people leave there machines on overnight which costs us money we want a simple soloution that will shutdown all the machines at a certain time each night saving us a bit of money. all the office machines are running win xp/win7/vista. I have played about with the shutdown commands for windows and it doesnt seem to work i would set it locally to shutdown my machine at a ceretain time lock my machine expecting it to be shutdown when i returned and it is still running. maybe there is a little program out there that will do the trick
    fortune2k is offline   Reply With Quote
    Old 02-11-2009, 11:05 AM   #4 (permalink)
    Senior Member
     
    burble's Avatar
     
    Join Date: May 2007
    Posts: 662
    Thanks: 0
    Thanked 31 Times in 31 Posts
    burble's system
    Re: remote shutdown script/tool

    As long as you're running the shutdown command using an account that is an administrator on the machines you want to shut down then it should work. For me anyway it works fine, I've got one particular 2003 server (which is due to be retired in a few weeks) that never shuts down without a kick from the shutdown command.

    burble is offline   Reply With Quote
    Old 02-11-2009, 11:22 AM   #5 (permalink)
    Member
     
    Join Date: Nov 2007
    Posts: 164
    Thanks: 33
    Thanked 1 Time in 1 Post
    Re: remote shutdown script/tool

    hmmm i shall have another play and see if i can get it to work
    fortune2k is offline   Reply With Quote
    Old 02-11-2009, 11:48 AM   #6 (permalink)
    Clueless
     
    snootyjim's Avatar
     
    Join Date: Sep 2008
    Location: Ashford, Middlesex
    Posts: 1,254
    Thanks: 98
    Thanked 80 Times in 65 Posts
    snootyjim's system
    Re: remote shutdown script/tool

    You might want to try psshutdown from the Server 2008 resource kit, it's meant to be a lot more effective than the shutdown command.

    Having said that, I've never been able to get any of them to work, so I'm giving up for the time being.



    Desktop (Self-built): Antec P180, Corsair HX620, Gigabyte X48-DS4, Q9550 @ 3.4GHz, 4GB Corsair 8500 RAM, 2 x 4870 512MB, Spinpoint F1 320GB, HP w19, Creative T40
    Laptop (Dell Studio 1537): 2GHz T5800, 4GB Crucial RAM, Radeon Mobility 3450, 320GB HD
    Server (Tranquil SQ-A5H): Intel Atom 330, 2GB RAM, 4x1TB Spinpoint F1 Internal, 2x1TB Spinpoint F1 + 1x1.5TB Spinpoint F2 Backup
    Work Laptop (HP 550): 1.8GHz T5670, 2GB RAM, 250GB HD
    snootyjim is offline   Reply With Quote
    Old 02-11-2009, 01:21 PM   #7 (permalink)
    Member
     
    Join Date: Nov 2007
    Posts: 164
    Thanks: 33
    Thanked 1 Time in 1 Post
    Re: remote shutdown script/tool

    hmmm when there is about 300-400 machines in the building putting in lines of commands will be a long and painful process im gonna have a look and see what google gets me.
    fortune2k is offline   Reply With Quote
    Old 02-11-2009, 01:30 PM   #8 (permalink)
    Senior Member
     
    burble's Avatar
     
    Join Date: May 2007
    Posts: 662
    Thanks: 0
    Thanked 31 Times in 31 Posts
    burble's system
    Re: remote shutdown script/tool

    It's been ages since I used it, but doesn't Dameware let you see a list of machines, select a bunch of them and power them off?

    burble is offline   Reply With Quote
    Reply

    Breadcrumb
    Go Back   HEXUS.community discussion forums > HEXUS.help - buying advice & technical queries > Help - technical & advisory


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Trackbacks are On
    Pingbacks are On
    Refbacks are On


    Similar Threads
    Thread Thread Starter Forum Replies Last Post
    The Windows TV and/or Remote Control my PC thread badass HEXUS.hardware 17 20-10-2009 12:14 PM
    Remote controls with Pinnacle Dual DVB-T Pro and Nova T-500 in MCE 2005 dancingmatt SCAN.care@HEXUS 12 10-05-2007 12:35 PM
    Remote Desktop help with IP address Proplus Networking and Broadband 3 28-03-2004 04:28 PM



    All times are GMT. The time now is 10:28 AM.

    Any representations/statements made on the HEXUS.community discussion forums are the representations/statements of the author i.e. the person/organisation making them. If any such representations/statements are disputed they are a matter between the parties concerned.
    HEXUS Limited accepts no responsibility for any misrepresentations, inaccurate or false statements made by any person/organisation other than HEXUS Limited employees.
    For more information please read HEXUS Limited's terms, conditions and privacy policy.

    Hosted Exchange

    Powered by vBulletin® Version 3.8.4
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Content Relevant URLs by vBSEO 3.3.2
    © Copyright 2009 HEXUS® Limited. All rights reserved. Unauthorised reproduction strictly prohibited.