The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    how to turn off or hibernate a system when the network is off

    Discussion in 'Windows OS and Software' started by neo143, Jun 21, 2009.

  1. neo143

    neo143 Notebook Consultant

    Reputations:
    0
    Messages:
    170
    Likes Received:
    0
    Trophy Points:
    30
    hoe to turn off or hibernate a system when the network is off..please help i am using win xp 64 bit and vista 34 bit
     
  2. namaiki

    namaiki "basically rocks" Super Moderator

    Reputations:
    3,905
    Messages:
    6,116
    Likes Received:
    89
    Trophy Points:
    216
    What do you mean by 'when the network is off'?

    Are you trying to remote shut down a system you don't have access to?
     
  3. neo143

    neo143 Notebook Consultant

    Reputations:
    0
    Messages:
    170
    Likes Received:
    0
    Trophy Points:
    30
    hi,i dont mean so.actually wat i mean is that i leave my laptop at home when i go to office (making it download some movies from torrents).i aym using a cable broad band connection when power failure occurs my dsl modem switches off(network off) so i get a notification network cable unplugged.so when this happens i dont want my system running wastely.so i need smething to turn it off or hibernate when this happens.plz help
     
  4. The_Moo™

    The_Moo™ Here we go again.....

    Reputations:
    3,973
    Messages:
    13,930
    Likes Received:
    0
    Trophy Points:
    455
    if i remeber correctly VNC offers somethign like this?
     
  5. namaiki

    namaiki "basically rocks" Super Moderator

    Reputations:
    3,905
    Messages:
    6,116
    Likes Received:
    89
    Trophy Points:
    216
    In Control Panel -> Power Options you can set battery and AC settings separately, so for battery set hibernate after idle.

    Some programs like uTorrent will keep the computer from being detected as idle, but I think you can disable that in uTorrent settings.
     
  6. neo143

    neo143 Notebook Consultant

    Reputations:
    0
    Messages:
    170
    Likes Received:
    0
    Trophy Points:
    30
    actually my problem is not only power failure at my home .but the power failure at the main server

    i just wann to shut down my sys when this happens (network cable unplugged)
     
  7. Shyster1

    Shyster1 Notebook Nobel Laureate

    Reputations:
    6,926
    Messages:
    8,178
    Likes Received:
    0
    Trophy Points:
    205
    Write a monitoring utility that runs in the background, and when it detects that the network is no longer responsive, it triggers the shutdown routine.
     
  8. The_Moo™

    The_Moo™ Here we go again.....

    Reputations:
    3,973
    Messages:
    13,930
    Likes Received:
    0
    Trophy Points:
    455
    easier said then done lol :p
     
  9. Shyster1

    Shyster1 Notebook Nobel Laureate

    Reputations:
    6,926
    Messages:
    8,178
    Likes Received:
    0
    Trophy Points:
    205
    True enough; although it shouldn't be that difficult in Powershell. :D
     
  10. usapatriot

    usapatriot Notebook Nobel Laureate

    Reputations:
    3,266
    Messages:
    7,360
    Likes Received:
    14
    Trophy Points:
    206
    Some programs have an autoshutdown option that will activate one it's finished downloading/scanning or whatever.

    I know utorrent has that option and so do most anti virus programs.
     
  11. neo143

    neo143 Notebook Consultant

    Reputations:
    0
    Messages:
    170
    Likes Received:
    0
    Trophy Points:
    30
    can u please help with it ..i am a noob....
     
  12. neo143

    neo143 Notebook Consultant

    Reputations:
    0
    Messages:
    170
    Likes Received:
    0
    Trophy Points:
    30
    please guyz help me..........
     
  13. Shyster1

    Shyster1 Notebook Nobel Laureate

    Reputations:
    6,926
    Messages:
    8,178
    Likes Received:
    0
    Trophy Points:
    205
    Ok, I've been thinking about it a bit, and, depending on what OS you're running, there are several different ways to do this. The difficult part is just making sure that you've written something that shuts down or hibernates only when you want it to, but that does so every time the right sequence of events occurs.

    So, the first question is: What OS (name and service pack) are you running?

    Second question is: If you're running XP, do you have the Powershell script console installed (it's automatically included in _Vista, as far as I know)?

    Third question is: Which do you want, shutdown or hibernation?

    Fourth question is: How customizable do you want it (e.g., different shutdown times, different triggering criteria, different time-outs for polling the network connection's existence, etc)?

    Please keep in mind, though, that I'm doing this for free, and largely out of curiousity/teaching myself the innards of Windows, so you're not my client or customer, and if you don't like what I have the time and/or skill to produce, oh well. Ok?
     
  14. Shyster1

    Shyster1 Notebook Nobel Laureate

    Reputations:
    6,926
    Messages:
    8,178
    Likes Received:
    0
    Trophy Points:
    205
    Well, the OP seems to have skedaddled, even after taking all the trouble to bump his thread up a few days back.

    At any rate, if the OP comes back, I've a little Powershell script (please don't take me to task for poor code-writing, it was a dashed-off bit of stuff) that will do the basics of what he wants - poll for a good network connection, and then commence a shutdown once network connectivity is lost (provided the script is running at the time :D).

    Anyways, here it is: View attachment Get-NetworkStatus.ps1.txt

    In order to get it to work, you'll have to have Powershell installed (for XP, I believe it comes natively with _Vista), you'll also have to set the execution settings to permit execution of the script, which you should cut-n-paste into your own document just to stay away from the restrictions in Powershell on running unsigned scripts you downloaded. Also, save it without the ".txt" extension - that's there just to make the NBR filters happy.

    Any problems and I'll be happy to return the money you paid me for it :D