Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Auto Reboot on User Log off - Windows 7

Posted on 2012-04-08
1
Medium Priority
?
626 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 1500 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Suggested Courses

927 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