Set your power button to turn off your PC’s displays
Have you ever wanted the power button on your PC to do more than just turn off your computer? Fortunately, the Control Panel’s Power Options lets you change what the power button does, and there’s one power-button option which lets you shut off all the displays in a multi-monitor setup without your PC going to sleep or logging out.
This process should work on all machines running the Windows 10 Creators Update.
First you need to open the Control Panel and select System and then Power & Sleep. Now select Additional power settings.
In the Control Panel, click Change plan settings next to whichever radio button you use for your usual power plan.
On the next screen, click Change advanced power settings and a small pop-up window appears. Click the plus icon to the left of Power buttons and lid. This displays three more options. Select the plus icon next to Power button action.
In the pop up widow, each Setting is shown in blue and may already be set to Shut down.
Now click the Setting you want to change and the blue text changes to a drop-down menu. You can choose Do nothing to deactivate it, choose Sleep, or Shut down, or Turn off the display.
For our Option to work you should Select Turn off the display, click Apply, and then OK.
Now test it out by pressing your power button and your monitor(s) should just turn off. Hit your space bar or shake the mouse and your monitors come right back with no account login necessary.