In Windows 7 when a computer is booted users can log on using their credentials. In some cases it might be possible that as soon as the users start their computers they need to go out for some urgent work and because of which they need to shut down the computers instantaneously. By default Windows 7 allows users to shut down their computers even when they are not logged on. Assuming that Windows 7 is client operating system and is mostly used in home environments this configuration is enabled. However when Windows 7 computer is used in complex network scenarios that is in production environments it is recommended that administrators should disable this feature so that users cannot shut down the computers without logging on to them. Moreover in some cases administrators disable the shutdown feature as well. If you want to enforce users to log on to a Windows 7 computer in order to shut it down you need to follow the steps given below:
- Logon to the computer with administrator account.
- Click on Start button.
- At bottom of start menu in search box type gpedit.msc command and press enter key.
- On Local Group Policy Editor snap-in under Computer Configuration expand Windows Settings and then expand Security Settings.
- Expand Local Policies and click on Security Options.
- From the right pane double click on Shutdown: Allow system to be shut down without having to log on and on the opened box select Disabled radio button.
- Once done click on Ok button and close Local Group Policy Editor snap-in.
- Open Command Prompt and in command window type gpupdate /force to update here computer policy with latest configuration.
- Close Command Prompt.