To require users to log on before shutting down the computer, use the Registry Editor to create or assign the following Registry key value:
Hive: HKEY_LOCAL_MACHINE\SOFTWARE Key: \Microsoft\Windows NT\Current Version\Winlogon Name: ShutdownWithoutLogon Type: REG_SZ Value: 0