In this way to you will be able to restart your computer and log in as an administrator to change back the settings. User Configuration > Administrative Templates > System, double-click on the Prevent access to the command prompt and set it to Enabled.Īll these settings will be applicable to all the users except administrator. The last thing you need to do is to prevent other users from shutting down the computer using command prompt. Now scroll down to Shutdown: Allow the system to be shutdown without having to log onĭouble click on it and set it to Disabled.
Go to Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options. In Group Policy you can also configure to allow shutdown of the computer when some other user is logged on.
If you want to close the command line window only, see: How to close or exit the Windows command line. The result is the same as if you chose Start menu Power button Shut down. On the same User Configuration pane, scroll down to find Remove Logoff on start menu and set it to Enabled. The shutdown command closes the prompt window, and then starts shutting down Windows. This option removes the shutdown option from the Start Menu but the system still can be shutdown via the command prompt also. On the right side, double-click on Remove and prevent access to Shut Down command
Navigate to User Configuration > Administrative Templates and now click on Start Menu and Taskbar. Are you working on a shared computer and don’t want anyone to shutdown or log off your computer? If you’re looking for a way to prevent other users from shutting down or logging off your Windows XP machine this is the right place for you to learn.There are several ways In Windows XP to shut down a computer which includes, clicking on Start and Shut Down or Turn Off, pressing CTRL + ALT + DEL and choosing Shutdown, opening up the command prompt and type in the simplest shutdown command, the computer can also be turned off by installing a third party application that shuts down the computer automatically at a given time.Ĭlick on Start and then Run and type in gpedit.msc and press Enter.