Remove Logoff from the Start menu

For network environments, especially lab environments with reverting software, (an even most importantly just because it's Microsoft) rebooting when a user is done with the computer is essential to smooth operation. Leaving the "Logoff" option in the shut down menu is tempting for the "well doing user" thinking about the next user, but not necessarily the best thing even though intentions are pure enough. Removing the "Logoff" feature from the menu forces a reboot when leaving the station.

Note: Modifying the registry can be hazardous to your system if you are not careful.

To remove the Loggoff option, set the following key:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoLogOff"=hex:01,00,00,00

To return the Loggoff option:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoLogOff"=hex:00,00,00,00