Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How do I RESTART when clicking LOGOFF


16 Jul 2012   #1

Windows 7 Ultimate x64
 
 
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 System SpecsSystem Spec
.

16 Jul 2012   #2

Windows 7 Pro. 64/SP-1
 
 

Who disabled the restart/shutdown buttons?
My System SpecsSystem Spec
16 Jul 2012   #3

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
.


16 Jul 2012   #4

Windows 7 Ultimate x64 SP1
 
 

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 System SpecsSystem Spec
16 Jul 2012   #5

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
16 Jul 2012   #6

Windows 8 Core X64
 
 

Found this, don't know if it covers all instances of Logoff though: Remove Windows 7 Log Off Button - Microsoft Answers
My System SpecsSystem Spec
16 Jul 2012   #7

Windows 7 Ultimate x64 SP1
 
 

Quote   Quote: Originally Posted by Frosh View Post
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 System SpecsSystem Spec
16 Jul 2012   #8

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Ztruker View Post
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.


Quote   Quote: Originally Posted by kegobeer View Post
Quote   Quote: Originally Posted by Frosh View Post
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 System SpecsSystem Spec
17 Jul 2012   #9

Windows 7 Ultimate x64 SP1
 
 

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 System SpecsSystem Spec
Reply

 How do I RESTART when clicking LOGOFF




Thread Tools



Similar help and support threads for2: How do I RESTART when clicking LOGOFF
Thread Forum
Logoff causes restart BSOD Help and Support
Windows will not logoff or in praticular,,, restart BSOD Help and Support
Need to logoff from IE8 (Sometimes) to unfreeze. Browsers & Mail
New to SevenForums&logoff help Network & Sharing
Reverse all changes at logoff General Discussion
Windows 7 Logoff General Discussion
Logoff Hangs General Discussion

Our Sites

Site Links

About Us

Find 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 08:44 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33