Solved

Auto Reboot on User Log off - Windows 7

Posted on 2012-04-08
1
587 Views
Last Modified: 2012-04-08
I would like to know if there is anyway to automatically reboot a Windows 7 machine when a user Logs off?

I already tried the following, saved as a cmdgpedit script "shutdown -r -f -t 0" and added it to the User Configuration/Windows Settings/Scripts/Logoff . But nothing happens when I log off. The computer is on a Domain.

Also, the way I would like this to work is through RDP. For example when someone is connected to another machina via RDP, when the user closes the RDP window then the computer will automatically restart because closing RDP window = logoff.
Thanks.
0
Comment
Question by:jkz11169
1 Comment
 
LVL 21

Accepted Solution

by:
motnahp00 earned 500 total points
ID: 37822033
create a batch file within the script directory.

file name: auto_restart.bat

text: shutdown /r /t 0

Add it as a log off script.
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question