Solved

Auto Reboot on User Log off - Windows 7

Posted on 2012-04-08
1
608 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
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.

734 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