Sometimes you may want to disable to the shutdown of a system, such as a kiosk or a mission critical computer. With the below registry tweak, the shutdown command will be disabled. To re-enable the shutdown command, simply change the 1 to a 0 (zero).
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoClose"=dword:00000001