Sometimes you may want to keep your laptop on but the screen should be off, or you may want to close the LID. But it may happen that when you close the Lid the laptop get in to sleep mode or even it get switched off.
You can control this behavior by following below given simple steps:
If you do not find the battery icon you can directly got to power options using Control Pane -> Hardware and Sound -> Power Options. ( Control Panel option is present on the Start menu options.)
Now it will show you the control panel for power options windows as shown below.
Now choose your action as "Do nothing". Selecting "Do Nothing" will stop your laptop from getting switched off or getting sleep mode when you close the lid.