In the lower-left corner of your screen, next to the Windows Start button is the spyglass (used for searches).

Please click on it.

In the search box, enter "Power & Sleep Settings", and then select the one marked Power & Sleep Settings.

Make sure that the settings under "When plugged in, turn off after" and "When Plugged in, PC goes to sleep after
are both set to "Never".


Once those are set, please click the "X" in the upper right corner, to close the window.