 |
 |
Configure Windows to reboot on logout
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2007
Location: Canada
Status:
Offline
|
|
Ok, so I have done a lot of testing with Leopard as well as a dual-boot system with Windows XP and all is looking good. One thing I'm having an issue with is getting a script/command to run to auto restart Windows XP when the user logs out.
I'm using BootPicker from bombich.com and it works, and I have followed instructions/documentation that comes with BootPicker to "Configure Windows to reboot on logout" but can not seem to get it to work. This is both on the Windows Boot-Camp image as well as on a PC with Windows Xp.
Here are the instructions that is included in the documentation for BootPicker.
Configuring Windows to reboot on logout
Fundamental to the utility of BootPicker is getting a machine to always return to the BootPicker screen when a user is finished using Mac OS X or Windows. Many labs maintain a policy that users must log off of the computer before leaving to protect their data and identity. By enforcing this type of policy, lab managers can leverage this opportunity to reboot Windows to Mac OS X.
To reboot Windows at log off time, do the following:
1. Create a plain text file named "logoff-restart.cmd" with the contents "shutdown -r -f -t 0". Save it to the Desktop (for now).
2. Choose "Run" from the Start menu, type "gpedit.msc" and hit return.
3. Navigate to User Configuration > Windows Settings > Scripts
4. Double-click on the "Logoff" item in the pane on the right.
5. Click the "Add..." button, then click the "Browse" button.
6. Drag the logoff-restart.cmd file into the Browse window. That should copy the file to C  WINDOWS\system32\Group Policy\User\Scripts\Logoff.
7. Select the logoff-restart file in the browse window and click "Open". Click "OK" to dismiss the "Add a script" window.
8. Click "Apply", then click "OK". Log off to test that the script applied.
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status:
Offline
|
|
What's happening? Is it rebooting back to Windows? Is it just logging off in Windows? Need more details.
|
|
Vandelay Industries
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2007
Location: Canada
Status:
Offline
|
|
Originally Posted by Art Vandelay
What's happening? Is it rebooting back to Windows? Is it just logging off in Windows? Need more details.
When I select "Log Off" from start menu it just logs off.
Had the PC tech here in the office look at it and he was getting the same thing. He also did it on a non BootCamp HD. Did it on a PC. Able to run the command manually and it will restart to bootpick screen, but just wont work from the actuall logout button. Seem like it's not running the scrip.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2008
Status:
Offline
|
|
I'm currently banging my head on this problem right now. I added a pause after the "shutdown" command, and enabled "Run logoff scripts visible" (gpedit.msc: Local Computer Policy/User Configuration/Administrative Templates/System/Scripts/). But no matter what options I choose for "Shutdown" I always get a warning that "The device is not ready". I'm guessing that the logout process gets in the way of the script, since the script runs just fine from the desktop. I've also verified the error on a native MS computer.
So I'm going to try and find a way to have my lab users launch the script rather than use the built-in logout. But I'm concerned as they're network users and I need to make sure the home directories sync too. I'll try and update this thread as I learn something which will work. If you've found something in the meantime, I'm all ears!
FWIW, I tried BootPicker, but I didn't like the fact that there was only a maximum of 60 seconds before choosing the default OS - so I'm using, rEFIt. You can edit the config file to have no timeout on the choices, as well customizations of the GUI.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jun 2008
Status:
Offline
|
|
As a follow-up, I've found a useable, though not particularly elegant solution. I disabled the Logout options under Ctrl+Alt+Del, plus under Start Menu and Taskbar through Group Policy (Local Computer Policy/User Config/Start menu and Task bar, /User Config/System/Ctrl+Alt+Del ). Then I created a new shortcut on the desktop, with the location "shutdown.exe -r -f -t 0", picked a decent icon and named the shortcut "Logout". So double-clicking on that shortcut will logout and reboot the workstation.
It works, but means my lab users will need to be educated about the shortcut. Next trick is getting my OSX side to do the same thing, so all lab users will see the rEFIt selection graphics when sitting down at a workstation.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|