How do I RESTART when clicking LOGOFF


  1. Posts : 7
    Windows 7 Ultimate x64
       #1

    How do I RESTART when clicking LOGOFF


    My Boss wants to restart when the user clicks the logoff button.

    These computer are for students to use. The restart/shutdown button has been disable in the gpedit.msc.

    Currently when I add the restart.bat (shutdown -r -f -t 0) into gpedit.msc -> User Configuration -> Windows Settings -> Scripts -> Logoff, there is like a 20 seconds delay.
    So the student would click logoff and then it would show the login screen for ~20 seconds before restarting. The ~20 seconds is problematic when another student types in her account credentials and starts logging in, only to have the computer restart in the the middle of the profile loading.

    These computer are Windows 7 Enterprise 64 bit on windows domain environment. CPU is QuadCore, with no programs running. I have no control over the domain stuff, only able to bind computers to the domain.

    If I run the shutdown -r -f -t 0 there is no delay in restarting.

    Nothing sticks out in the event viewer logs.
    I would be glad to offer logs or more information.
      My Computer


  2. Posts : 25,847
    Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
       #2

    Who disabled the restart/shutdown buttons?
      My Computer


  3. Posts : 7
    Windows 7 Ultimate x64
    Thread Starter
       #3

    I did, user can't have the option to shutdown. The computer is locked away. User can't press the on button on the computer.
      My Computer


  4. Posts : 2,913
    Windows 7 Ultimate x64 SP1
       #4

    You can change the power button using a GPO pushed out from a DC. Do you have access to group policy? I'm not a big believer in using scripts, as GPOs are much more robust.

    http://technet.microsoft.com/en-us/l.../ee617162.aspx
      My Computer


  5. Posts : 7
    Windows 7 Ultimate x64
    Thread Starter
       #5

    I don't have access to domain stuff if your referring to Domain Controllers. I can change local group policy on computer, but nothing there pertains to me.
      My Computer


  6. Posts : 6,285
    Windows 10 Pro X64
       #6

    Found this, don't know if it covers all instances of Logoff though: Remove Windows 7 Log Off Button - Microsoft Answers
      My Computer


  7. Posts : 2,913
    Windows 7 Ultimate x64 SP1
       #7

    Frosh said:
    I don't have access to domain stuff if your referring to Domain Controllers. I can change local group policy on computer, but nothing there pertains to me.
    Well, if your boss wants to control student access on all the computers, then he needs to utilize the domain GPO. There's no way to do it with local security policy.
      My Computer


  8. Posts : 7
    Windows 7 Ultimate x64
    Thread Starter
       #8

    Ztruker said:
    Found this, don't know if it covers all instances of Logoff though: Remove Windows 7 Log Off Button - Microsoft Answers
    Then I would have no buttons to do anything

    Thanks for responding.


    kegobeer said:
    Frosh said:
    I don't have access to domain stuff if your referring to Domain Controllers. I can change local group policy on computer, but nothing there pertains to me.
    Well, if your boss wants to control student access on all the computers, then he needs to utilize the domain GPO. There's no way to do it with local security policy.
    Pardon my lack of knowledge. So domain GPO can restart a computer when a user clicks the Logoff button?

    Thanks kegobeer for responding.
      My Computer


  9. Posts : 2,913
    Windows 7 Ultimate x64 SP1
       #9

    The domain GPO policy changes the default action of the button. You can then lock things down.

    But bear in mind that it's pretty easy to get around these types of things. You can't eliminate command prompt commands that can shut down the computer.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:20.
Find Us