Checking Power Settings Windows 10
In cases where you require your PC to be on at all times, and not to go to sleep, make the following configuration changes:
Go to the search icon and type power settings:
Change Screen and Sleep settings to never, then close the windows as the changes are automatically saved: