Steps to prevent it 1. Click start->type "mmc"(without quotes) >> then press Enter Microsoft management console. 2. Now in the File Tab,click on Add/Remove snap-in. 3. Now in the left side,under the available snap-in's select group policy object double click on it and click browse. 4. Now under the user's tab,select Administrators and click OK. 5. Now under the newly created local computer /non Administrator policy object in the left panel navigate to user configuration>>Administrator Templates>>start menu and task bar. 6. Now select remove to prevent the shutdown,Restart,Sleep,Hibernate commands and double click on it from the right panel 7. Eventually, select enable>>Apply>>OK and it is done now windows 7 is prevented from shutdown and Restart.