ANAVEM
Languagefr
How to Add 'Turn Off Display' to Windows 11 Context Menu

How to Add 'Turn Off Display' to Windows 11 Context Menu

Add a convenient 'Turn off display' option to your Windows 11 desktop right-click menu using registry modifications. Create quick access for turning off your display or locking your computer instantly.

Emanuel DE ALMEIDAEmanuel DE ALMEIDA
March 18, 2026 12 min 0
easywindows11 8 steps 12 min

Why Add a Turn Off Display Option to Windows 11 Context Menu?

Windows 11 doesn't include a built-in way to quickly turn off your display from the desktop. While you can adjust power settings or use keyboard shortcuts, having a right-click option provides instant access without memorizing hotkeys or navigating through settings menus.

This modification is particularly useful for users who frequently step away from their computers and want to quickly turn off their monitors to save power or maintain privacy. The registry-based solution uses Windows' built-in PowerShell and user32.dll API to send monitor power-off signals, making it a lightweight and reliable approach.

How Does the Registry Modification Work in Windows 11?

The solution creates new registry entries under HKEY_CLASSES_ROOT\DesktopBackground\Shell, which controls the desktop context menu. When you right-click the desktop, Windows reads these registry keys to populate menu options. The modification adds a 'Turn off display' entry with two sub-options: one for turning off the display only, and another for locking the computer and turning off the display.

The actual display control uses PowerShell to call the Windows SendMessage API with specific parameters (0x0112, 0xF170, 2) that tell the system to turn off all connected monitors. This method works across different Windows 11 versions, including the latest 24H2 release, and remains functional even after system updates.

Related: How to Restore Windows 10-Style Start Menu in Windows 11

Related: Change User Profile Folder Name in Windows 11 25H2

Related: How to Remove Recommended Section from Windows 11 Start Menu

What Are the Benefits of This Windows 11 Context Menu Modification?

Beyond convenience, this modification provides several practical advantages. It's faster than using Windows' built-in power options, works immediately without delays, and doesn't require installing third-party software. The solution is also reversible - you can remove the context menu option by running a simple removal registry file. For users who frequently present or share their screens, having quick display control helps maintain privacy and professionalism during meetings or demonstrations.

Implementation Guide

Full Procedure

01

Create Registry Backup and Prepare Text File

Before making any registry changes, create a backup to restore if something goes wrong. Open Registry Editor by pressing Win + R, typing regedit, and pressing Enter.

In Registry Editor, click File > Export. Choose a location, name it registry_backup_before_display_mod, and click Save. This creates a complete registry backup.

Now create the registry modification file. Right-click on an empty area of your desktop, select New > Text Document. Name it turn_off_display (the .txt extension will be changed later).

Pro tip: Always create registry backups before making modifications. If something breaks, you can restore the entire registry by double-clicking your backup file.

Verification: Check that you have a .reg backup file saved and a new text document on your desktop ready for editing.

02

Add the Registry Code for Display Control

Double-click your text document to open it in Notepad. Copy and paste this exact registry code that creates the 'Turn off display' context menu option:

Windows Registry Editor Version 5.00

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

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\TurnOffDisplay\shell]

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

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\TurnOffDisplay\shell\01menu\command]
@="cmd /c \"powershell.exe -Command \"(Add-Type '[DllImport(\\\"user32.dll\\\")]public static extern int SendMessage(int hWnd,int hMsg,int wParam,int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)\"\""

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\TurnOffDisplay\shell\02menu]
"MUIVerb"="Lock computer and Turn off display"
"CommandFlags"=dword:00000020
"Icon"="imageres.dll,-59"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\TurnOffDisplay\shell\02menu\command]
@="cmd /c \"powershell.exe -Command \"(Add-Type '[DllImport(\\\"user32.dll\\\")]public static extern int SendMessage(int hWnd,int hMsg,int wParam,int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)\" & rundll32.exe user32.dll,LockWorkStation\""

This code creates two options: one to simply turn off the display, and another to lock the computer and turn off the display simultaneously. The PowerShell command uses the Windows API SendMessage function to send a monitor power-off signal.

Warning: Copy this code exactly as shown. The escape characters and quotes are critical for proper execution. Any modification will cause the registry entry to fail.

Verification: Ensure the code is pasted exactly as shown with no extra spaces or missing characters.

03

Save as Registry File and Apply Changes

Save the file with the correct extension. Press Ctrl + S to open the Save dialog. In the 'Save as type' dropdown, select All Files (*.*). Change the filename to turn_off_display.reg (replacing the .txt extension).

Click Save to create your registry file. You'll see the file icon change to show it's now a registry file with a blue and white icon.

Double-click the turn_off_display.reg file to apply the changes. Windows will show a User Account Control prompt - click Yes. Then you'll see a warning about adding information to the registry - click Yes again to confirm.

Windows will display a confirmation message saying 'The keys and values contained in turn_off_display.reg have been successfully added to the registry.'

Verification: Look for the success message confirming the registry entries were added. The file should have a .reg extension and registry file icon.

04

Restart Windows Explorer to Apply Menu Changes

The new context menu option won't appear until Windows Explorer refreshes its shell extensions. Press Ctrl + Shift + Esc to open Task Manager.

In the Processes tab, scroll down to find Windows Explorer. Right-click on it and select Restart. Your desktop will briefly disappear and then reappear as Explorer restarts.

Alternatively, you can restart your computer completely, which will also apply the changes.

Pro tip: Restarting Explorer is faster than rebooting and immediately applies registry changes to the shell. This method works for most context menu modifications.

Verification: After Explorer restarts, your desktop should reappear normally. The taskbar and desktop icons should be visible and responsive.

05

Test the New Context Menu Options

Right-click on an empty area of your desktop. In Windows 11's compact context menu, you'll need to click Show more options at the bottom to access the classic context menu where your new option appears.

Look for Turn off display in the context menu. Click on it to see the submenu with two options:

  • Turn off display - Immediately turns off your monitor(s)
  • Lock computer and Turn off display - Locks your computer and turns off the display

Test the first option by clicking Turn off display. Your screen should go black immediately. Move your mouse or press any key to wake the display back up.

Test the second option by clicking Lock computer and Turn off display. Your screen will go black and when you wake it, you'll see the Windows lock screen requiring your password.

Common mistake: Forgetting that Windows 11 uses a compact context menu by default. You must click 'Show more options' or hold Shift while right-clicking to see your custom menu items.

Verification: Both menu options should work immediately, turning off your display and optionally locking your computer as expected.

06

Enable Classic Context Menu (Optional)

If you want to skip clicking 'Show more options' every time, you can permanently enable the classic context menu. Open Terminal as Administrator by right-clicking the Start button and selecting Terminal (Admin).

Run this command to modify the registry and enable the classic menu:

reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve

Press Enter and you should see 'The operation completed successfully.' Restart Windows Explorer using the same method as Step 4 (Ctrl + Shift + Esc, find Windows Explorer, right-click, Restart).

Now when you right-click the desktop, you'll immediately see the classic context menu with your 'Turn off display' option visible without needing to click 'Show more options'.

To revert back to the compact menu later, run this command in Terminal (Admin):

reg delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f

Verification: Right-click the desktop and confirm you see the classic context menu immediately with your 'Turn off display' option visible.

07

Create Removal Script (Optional)

Create a removal script in case you want to remove the 'Turn off display' option later. Right-click the desktop, select New > Text Document, and name it remove_turn_off_display.

Open the file and paste this registry code that removes the menu option:

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\DesktopBackground\Shell\TurnOffDisplay]

Save the file as remove_turn_off_display.reg (remember to select 'All Files' in the save type dropdown). Store this file somewhere safe for future use.

To remove the context menu option, simply double-click this removal file and confirm the registry changes when prompted. The minus sign before the registry key tells Windows to delete that entire key and all its subkeys.

Pro tip: Always create removal scripts when adding custom registry entries. This makes it easy to clean up modifications without manually navigating through Registry Editor.

Verification: Keep the removal file saved for future use. You can test it works by running it, then checking that the context menu option disappears after restarting Explorer.

08

Troubleshoot Common Issues

If the menu option doesn't appear, first ensure you're looking in the right place. In Windows 11, custom context menu items appear in the classic menu, which requires clicking Show more options or holding Shift while right-clicking.

If you see a command prompt window flash briefly when using the option, this is normal behavior. The PowerShell command executes quickly and the window closes automatically.

If the display doesn't turn off, check if your antivirus software is blocking PowerShell execution. Add an exception for PowerShell or test the command in Windows Safe Mode to verify it works.

For multi-monitor setups, the command turns off all displays simultaneously. If you want to turn off only specific monitors, you'll need third-party software as Windows doesn't provide per-monitor control through this API.

If registry edits fail with permission errors, ensure you're running as Administrator and that your user account has full registry access. Some corporate environments restrict registry modifications.

Warning: If Windows updates break the functionality, simply re-apply the registry file. Major Windows updates sometimes reset shell extensions, requiring you to re-run the .reg file.

Verification: Test the menu option works correctly and troubleshoot any issues using the solutions above before considering the setup complete.

Frequently Asked Questions

Does adding turn off display to Windows 11 context menu work on all versions?+
Yes, this registry modification works on all Windows 11 versions including the latest 24H2 release and Insider builds. The method uses standard Windows APIs that haven't changed since Windows 11's launch. However, you may need to re-apply the registry file after major Windows updates if shell extensions get reset.
Why don't I see the turn off display option after adding the registry entries?+
Windows 11 uses a compact context menu by default. You need to click 'Show more options' at the bottom of the context menu or hold Shift while right-clicking to see custom menu items. Alternatively, you can enable the classic context menu permanently using the registry command provided in the tutorial.
Is it safe to modify the Windows 11 registry for context menu changes?+
Yes, this specific registry modification is safe when done correctly. The changes only affect the desktop context menu and don't alter critical system functions. Always create a registry backup before making changes, and use the exact code provided to avoid syntax errors that could cause issues.
Can I remove the turn off display context menu option if I don't want it anymore?+
Absolutely. You can remove the option by creating a removal registry file with the deletion command, or by manually deleting the registry key in Registry Editor. The tutorial includes instructions for creating a removal script that cleanly removes all related registry entries with a simple double-click.
Does the turn off display command work with multiple monitors in Windows 11?+
Yes, the PowerShell command turns off all connected monitors simultaneously. It uses the Windows SendMessage API to send a power-off signal to all displays. If you need per-monitor control to turn off specific displays individually, you would need third-party software as Windows doesn't provide this functionality through the standard API.
Emanuel DE ALMEIDA
Written by

Emanuel DE ALMEIDA

Microsoft MCSA-certified Cloud Architect | Fortinet-focused. I modernize cloud, hybrid & on-prem infrastructure for reliability, security, performance and cost control - sharing field-tested ops & troubleshooting.

Discussion

Share your thoughts and insights

You must be logged in to comment.

Loading comments...