Disable Default "Open Windows PowerShell" Right-Click Menu

Abstract: Remove the default Open Windows PowerShell option from the File Explorer right-click context menu by deleting specific registry keys.

Created: 2026-07-31 by

The default "Open Windows PowerShell" entry in the Windows Explorer right-click context menu can be removed by editing the Windows Registry. This change targets specific registry keys associated with folder and directory contexts, effectively hiding the option from standard users while keeping the shell accessible via other means.

Understanding the Context Menu Entry

Starting with Windows 10 version 1809, Microsoft introduced a convenient feature that adds an "Open Windows PowerShell" option to the right-click menu when you select a folder or an empty space within a directory. For many power users, this is a helpful shortcut. However, for those who prefer a cleaner interface or use alternative terminal emulators, this entry can become clutter. Removing it does not disable PowerShell itself; it only removes the specific integration point within the File Explorer shell extension.

This modification requires direct interaction with the Windows Registry Editor. Because the registry controls core system behaviors, caution is advised. It is recommended to create a backup of your registry before proceeding. You can do this by opening regedit, selecting File > Export, and saving a .reg file. If something goes wrong, you can simply double-click that file to restore your previous settings. Note that if you wish to remove the similar "Open PowerShell here" entry that appears when you hold Shift while right-clicking, the process is slightly different, as covered in our guide on How to Disable Default Open with PowerShell Right-Click Menu Without Disabling PowerShell Entry in File Menu.

Method 1: Editing the Registry Manually

The most reliable way to remove this option is to delete the specific registry subkeys responsible for registering the shell extension. There are two primary locations where these entries are stored: one for folders and one for directories (empty spaces).

  1. Press Win + R to open the Run dialog.
  2. Type regedit and press Enter. If prompted by User Account Control, click Yes.
  3. Navigate to the following path for folder contexts:
    HKEY_CLASSES_ROOT\Directory\Background\shell\Windows.PowerShell
  4. Navigate to the following path for directory/folder item contexts:
    HKEY_CLASSES_ROOT\Directory\shell\Windows.PowerShell
  5. You may also need to check the Drive key if you want to remove it from drive roots:
    HKEY_CLASSES_ROOT\Drive\shell\Windows.PowerShell
  6. Select each of these keys and press Delete. Confirm the deletion when prompted.
  7. Close the Registry Editor.

After deleting these keys, the changes take effect immediately. You may need to close any open Explorer windows and reopen them to see the removal reflected in the right-click menu. This method is permanent until you manually recreate the keys or run a restoration script.

Method 2: Using a .REG File for Automation

If you prefer a non-interactive approach or need to apply this setting across multiple machines, you can use a registry import file. Create a new text file and name it RemovePowerShellContextMenu.reg. Paste the following content into the file:

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Directory\Background\shell\Windows.PowerShell]
[-HKEY_CLASSES_ROOT\Directory\shell\Windows.PowerShell]
[-HKEY_CLASSES_ROOT\Drive\shell\Windows.PowerShell]

Save the file, then double-click it to merge it into your registry. Click Yes to approve the changes. This achieves the same result as the manual method but ensures consistency and speed. Be aware that this approach assumes the default installation paths of the PowerShell shell extensions. In rare cases involving custom installations or third-party integrations, additional keys might exist.

Restoring the Option

If you decide that you miss the convenience of the PowerShell shortcut, you can easily restore it. Instead of deleting the keys, you would typically re-import a .reg file that creates these keys again. Alternatively, you can reverse the process by creating the keys manually, though Microsoft does not provide a simple toggle in Settings for this. Some users opt to keep the entry but rename it or change its icon using the same registry paths. For those interested in broader system customizations, such as altering visual themes, you might also look into How to Programmatically Change the Windows 11 Color Scheme to further tailor your desktop experience.

Risks and Considerations

Modifying the registry carries inherent risks. While removing these specific keys is generally safe and reversible, incorrect edits to other parts of the registry can cause system instability. Always ensure you are targeting the exact paths listed above. Do not delete parent keys like Directory\Background or Directory themselves, as this could break other functionality in File Explorer. Furthermore, note that this action does not affect the ability to launch PowerShell from the Start Menu or via the command line. It strictly affects the context menu integration. If you encounter issues with other context menu items, such as GPU software integrations, you might find relevant troubleshooting steps in articles about How to Remove AMD Software: Adrenalin Edition from Windows Explorer Context Menu.

Frequently Asked Questions

Does removing this entry uninstall PowerShell?

No, removing the context menu entry does not uninstall or disable PowerShell. The application remains fully functional and can still be launched from the Start Menu, Taskbar, or by typing powershell in the Run dialog. This change only hides the shortcut from the right-click menu in File Explorer.

Will Windows Updates revert this change?

In most cases, Windows updates will not automatically restore this registry key. However, major feature updates occasionally reset certain shell extensions. If the entry reappears after a significant update, you may need to reapply the registry fix or check if a newer version of Windows has moved the key location.

Can I remove the entry only for my user account?

The keys mentioned in this article are located under HKEY_CLASSES_ROOT, which is a merged view of HKEY_CURRENT_USER and HKEY_LOCAL_MACHINE. To restrict the change to a single user, you should target the HKEY_CURRENT_USER\Software\Classes equivalent paths. However, for most home users, modifying the global keys is sufficient and simpler.

What if the right-click menu is still slow after removal?

If your context menu feels sluggish even after removing the PowerShell entry, the delay might be caused by other third-party shell extensions. Tools like ShellExView can help identify and disable problematic extensions. Removing unnecessary context menu items is a common first step in troubleshooting Explorer performance issues.

Is there a GUI tool to manage this?

There are no built-in graphical settings in Windows to toggle this specific option. Third-party tools like "Context Menu Manager" or "Winaero Tweaker" may offer a graphical interface to hide or show this entry without directly editing the registry, providing a safer alternative for less technical users.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More