-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PowerShell v7 (as well as Windows PowerShell) right-click context menu entries don't work on libraries. #23997
Comments
|
First, let me provide some context:
Note: The Windows 11 (W11) statements below are based on the 22H2 version I'm running. The fact that the PowerShell MSI installer defines a Instead, this entry relates to right-clicking on the background of the virtual The limited utility this hypothetically provides - opening a PowerShell terminal in PowerShell uses a central definition in Things are different in the tree view (left sidebar):
A mitigation of the problem is to make the MSI installer not write an
The bug with respecting to right-clicking the As an aside:
|


Prerequisites
Steps to reproduce
PowerShell v7 installs right-click context menu entries to launch a PowerShell window when right clicking a directory, directory background, or drive. The entries are installed in HKCU\Directory\shell, HKCU\Directory\Background\Shell and HKCU\Drive. These entries work fine....meaning that when selecting Open PowerShell 7 window upon right-clicking a directory, directory background or drive, a PowerShell window opens up to the desired directory.
However, PowerShell also installs right click context menu entries for Libraries that do not work. PowerShell entries are not installed at HKCU\Library\Background\Shell, but, when right clicking the main library icon in File Explorer Navigation Pane, or the background of the main library virtual folder, a PowerShell context menu entry appears. When PowerShell is launched from the entry in a library, nothing happens. Note that, the PowerShell right-click entries for individual libraries, such as documents or pictures, have no PowerShell entries unless added to HKCR\Library\Background\shell
So, I would like to either: modify the context menu commands for PowerShell to open in libraries (which I don't think is possible for virtual folders) or exclude libraries, but not regular folders, from the registry entries.
How do I do this?
After looking into the issue further....the default PowerShell and Command Prompt context menu entries included in Win10 also do not open in libraries. See attached pic for the error message when launching PowerShell from right-click menu in libraries. Would this question be better directed to Microsoft?
Expected behavior
PowerShell v7 installs right-click context menu entries to launch a PowerShell window when right clicking a directory, directory background, or drive. The entries are installed in HKCU\Directory\shell, HKCU\Directory\Background\Shell and HKCU\Drive. These entries work fine....meaning that when selecting Open PowerShell 7 window upon right-clicking a directory, directory background or drive, a PowerShell window opens up to the desired directory.Actual behavior
Error details
No response
Environment data
Visuals
The text was updated successfully, but these errors were encountered: