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.
July 16th, 2012 6:52pm

Hi , I have tested it on may test machine. Added the restart.bat to the logoff script. I click the log off and it shut down immediately after logging off. It will not show the login screen. %windir%\system32\shutdown.exe -r -f -t 0 You may boot into Clean Boot mode and test the issue. The next best thing is put the restart.bat file on the desktop and let the students double-click the bat file instead of clicking the logoff.Tracy Cai TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
July 18th, 2012 1:19am

Hi , I have tested it on may test machine. Added the restart.bat to the logoff script. I click the log off and it shut down immediately after logging off. It will not show the login screen. %windir%\system32\shutdown.exe -r -f -t 0 You may boot into Clean Boot mode and test the issue. The next best thing is put the restart.bat file on the desktop and let the students double-click the bat file instead of clicking the logoff.Tracy Cai TechNet Community Support
July 18th, 2012 1:19am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics