To change your preferences follow the below steps:
Click on the Start menu and select Settings
Select System
Select Power & sleep
Change your settings preferences - for Strictly Savvy we usually set all to Never so we can run updates in the background, and so that Zylex can remote access them, without them being interrupted by the laptop falling asleep
Your changes will automatically save and you can close the Settings window
If you find you're computer is going to sleep frequently even though you have your settings set so that it shouldn't, you'll need to restore your settings:
Click on the Start menu and select Settings
Select System
Select Power & sleep
Select Additional power settings
From the panel on the left of the pop up, select Choose when to turn off the display
Select Restore default settings for this plan
Your computer should now stop going to sleep frequently. You may need to change your sleep settings for battery or connected to power. Follow the steps in the section above to do this