The following setting will prevent someone to turn off your computer. This is useful if for example you leave the computer for a while and you're worried someone else is going to Shut Down your computer.
Follow the steps below.
Click Start * Run, type "regedit" and press Enter.
Key: HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ Explorer
Value Name: NoClose
Data Type: REG_DWORD
Data: (0 = shutdown enabled, 1 = shutdown disabled)