1. Click the Start Menu and select Settings
  2. Select System

  3. Select Power & Sleep from the left side and ensure all of the options are set to Never
    1. Laptop Power Settings
    2. Desktop Power Settings