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.

    Power button and lid close to log off windows

    Discussion in 'Windows OS and Software' started by GregZx1, Nov 11, 2010.

  1. GregZx1

    GregZx1 Newbie

    Reputations:
    0
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    Is it possible to change something in Windows 7 to log off users when they close the lid or hit the power buttton.

    I have a Dell Windows 7 64bit Pro machine that has 4 other accounts besides my own. It annoys me to no end that no one ever logs off thier account. Id like to solve this by having the power button and lid close log them off windows. Not sure why it annoys me so much.

    Let me know if you have any ideas,

    Thanks,

    Greg
     
  2. olyteddy

    olyteddy Notebook Deity

    Reputations:
    468
    Messages:
    1,369
    Likes Received:
    0
    Trophy Points:
    55
    It probably annoys you because you want control. Could you set it to 'Hibernate'? That should force a log-off.
     
  3. namaiki

    namaiki "basically rocks" Super Moderator

    Reputations:
    3,905
    Messages:
    6,116
    Likes Received:
    89
    Trophy Points:
    216
    You can also set screensaver to return to the logon screen.
     
  4. GregZx1

    GregZx1 Newbie

    Reputations:
    0
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    One of my concerns is running out of resources constantly when having 4 profiles constantly running programs like netflix, and Wow. Id love to have the power button or closing the lid force close everything running, Log them off, than put the computer to sleep. Then, upon opening the lid, have the computer back to the log in screen.

    Maybe im crazy here, but i think that is the ideal way to have the computer set up. Maybe a script could be written?
     
  5. michael_recycled

    michael_recycled Notebook Deity

    Reputations:
    329
    Messages:
    989
    Likes Received:
    0
    Trophy Points:
    30
    You can configure both - the lid and the power button actions - to "shutdown" in the power settings.

    Michael
     
  6. davidfor

    davidfor Notebook Consultant

    Reputations:
    65
    Messages:
    262
    Likes Received:
    0
    Trophy Points:
    30
    Maybe you can script the log off and have it scheduled to run when appropriate power event is triggered . A concern would be what happens if the user is prompted for something (such as saving a file before closing an editor). If this is done when the user closes the lid, they won't know anything about it.
     
  7. shaiang

    shaiang Newbie

    Reputations:
    8
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    5
    It's possible to configure that the power button/lid will put the computer to sleep or hibernate and shutdown.

    You just need to change it in the power setting's on windows,
    If you don't know how to i can explain it to you.
    And if you have a third party software like i have-"Lenovo power manager"
    Then change it from there aswell.
     
  8. shaiang

    shaiang Newbie

    Reputations:
    8
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    5
    On my laptop the power button put's the computer to hibernate.
     
  9. woofer00

    woofer00 Wanderer

    Reputations:
    726
    Messages:
    1,086
    Likes Received:
    0
    Trophy Points:
    55
    The issue isn't configuring the computer to sleep or hibernate on a power event. It's causing an actual log off on such a power event along with all the other actions that happen on a real logoff. We have the same issue at work, where files won't replicate on the network because users don't log off, just lock and walk away or sleep/hibernate a month at a time. Just because you see a login screen when you power back on does not mean that an actual log off process happened.
     
  10. coolguy

    coolguy Notebook Prophet

    Reputations:
    805
    Messages:
    4,679
    Likes Received:
    12
    Trophy Points:
    106
    Shutting down a system will log off all users (all programs will be closed, open files won't be saved, so the users will know what will happen next time if they don't logoff).