Advertisement

Add Turn Off Display Context Menu in Windows 10

By default, Windows 10 will turn off the display after 10 minutes of your inactivity. In this article, we will see how to add a special context menu item to turn off the display directly on demand.

Advertisеment

If you have not changed the default power management settings in Windows 10, the display will be turned off after 10 minutes. Unfortunately, the operating system does not provide a native way to turn off display directly on demand by running a command or pressing some button. To bypass this limitation, we will use a third party tool, NirCmd by NirSoft, and integrate it with the Desktop context menu.

Windows 10 Turn Off Display Context Menu

Before proceeding, ensure that your user account has administrative privileges. Now, follow the instructions below.

To add the Turn Off Display context menu in Windows 10, first download NirCmd.

If you are running a 32-bit Windows version, use this link:

NirCmd 32-bit

Otherwise, download the 64-bit version of NirCmd.

NirCmd 64-bit

Unpack the nircmd.exe file to any folder and unblock it.

Unpack Nircmd Exe

Unblock Nircmd

Next, move the unblocked file to the C:\Windows folder. Click the Continue button to approve the operation if prompted. You'll see a confirmation dialog if you have UAC enabled.

Move Nircmd To Windows

Having "nircmd.exe" in the Windows directory will allow you to launch it without typing the full path to the file. You can launch it from the Run dialog, from Explorer's address bar, from a command prompt instance or from PowerShell. In our case, it will be launched directly from the Desktop context menu.

Now, import the following Registry tweak:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\TurnOffDisplayGroup]
"Icon"="display.dll,-1"
"MUIVerb"="Turn off display"
"Position"="Bottom"
"SubCommands"=""


[HKEY_CLASSES_ROOT\DesktopBackground\Shell\TurnOffDisplayGroup\shell\TurnOffDisplay]
"Icon"="powercpl.dll,-513"
"MUIVerb"="Turn off display"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\TurnOffDisplayGroup\shell\TurnOffDisplay\command]
@="nircmd.exe cmdwait 1000 monitor async_off"


[HKEY_CLASSES_ROOT\DesktopBackground\Shell\TurnOffDisplayGroup\shell\TurnOffDisplayLockPC]
"MUIVerb"="Lock computer and Turn off display"
"Icon"="imageres.dll,-59"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\TurnOffDisplayGroup\shell\TurnOffDisplayLockPC\command]
@="cmd /c \"nircmd.exe cmdwait 1000 monitor async_off & rundll32.exe user32.dll, LockWorkStation\""

You can copy and paste the text above in a Notepad document and save it to a *.Reg file. Or you can download ready-to-use Registry files below (including the undo tweak).

Download Registry Files

Double-click the *.REG file you created or downloaded and confirm the import operation when prompted.

Import Registry Files

You get the following submenu in the Desktop context menu:

Windows 10 Turn Off Display Context Menu

The second command will turn off your Display and lock the current user session. So, if you are leaving your PC for a long time, you might want to lock your PC and turn off the monitor instantly with one click.

This article is based on our previous tutorial How to lock Windows 10 and turn off the display with one click.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisеment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

8 thoughts on “Add Turn Off Display Context Menu in Windows 10”

  1. Thank you.

    Believe it or not, this is actually a very useful tip for me, it comes in handy when I just want to listen to music and have the laptop screen off. You’d figure that this is something MS could of thought of implementing in the OS.

  2. I’ve always used nircmd turn off monitor in a shortcut,, but this is brilliant, well developed.

    What’s the difference between async_off and off ? I never knew about the async_off option?

    Thanks Winaero

    1. Here you go: http://www.nirsoft.net/utils/nircmd2.html#using:

      Turn off the monitor nircmd.exe monitor async_off

      monitor [action]
      Changes the state of the display monitor. The [action] parameter may contain the following values:

      off: Turn off the monitor
      async_off: Turn off the monitor. Use this value if NirCmd remains in memory when using monitor off.
      on: Turn on the monitor
      low: Set the monitor to low power state.

      There is also the async_on switch.

  3. This is the first place I found with any sort of way to post anything, even a question so I do not know if this is the right forum to ask this. I downloaded the Winaero Context Menu Tuner and added some items to my context menu. Whether I did it wrong or something else is going on I do not know. What I do know is I can now no longer open folders in Windows Explorer at all. Windows Explorer stops working and closes every time I try. I have all my files and shortcuts to programs in folders in Explorer so now I have access to none of them. Help! How so I undo the changes get functionality back to Explorer.

    1. press ctrl+shift+esc to open the task manager
      switch it to more details
      from the menu, run a new app
      browse for context menu tuner
      and undo your changes.

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.