Hi,
Thank you for posting your query in Microsoft query.
You can adjust how long your computer waits before sleeping or hibernating—or prevent it from turning itself off altogether. But be careful. On a battery powered laptop, inhibiting sleep or hibernation can result in data loss if the battery dies.
Here's how to prevent your computer from entering a power-saving state:
a. Press Windows key + X.
b. Click Control Panel.
c. Clicking System and Security, and then clicking Power Options.
d. On the Select a power plan page, click Change plan settings next to the selected plan.
e. On the Change settings for the plan page, click Change advanced power settings.
f. On the Advanced settings tab, double-click Sleep, double-click Sleep after, and then do one of the following:
If you're using a laptop, click On battery or Plugged in (or both), click the arrow, and then click Never.
If you're using a desktop computer, click Setting, click the arrow, and then click Never.
g. Double-click Hibernate after, and then do one of the following:
If you're using a laptop, click On battery or Plugged in (or both), click the arrow, and then click Never.
If you're using a desktop computer, click Setting, click the arrow, and then click Never.
If you also want the display to stay turned on, double-click
Display, double-click Turn off display after, and then do one of the following:
If you're using a laptop, click On battery or Plugged in (or both), click the arrow, and then click Never.
If you're using a desktop computer, click Setting, click the arrow, and then click Never.
h. Click OK, and then click save changes.
Note: On most computers, you can resume working by pressing your computer's power button. However, not all computers are the same. You might be able to wake your computer by pressing any key on the keyboard, clicking a mouse button, or
opening the lid on a laptop. Check the documentation that came with your computer or go to the manufacturer's website.
If you have any other questions or you need any other information about Windows, feel free to post your questions and we will be glad to help.
Thank you.