How to Remove 'Open PowerShell' from Windows 10 Context Menu

In an earlier post, we walked through the steps to add the ‘Open command window here’ option to the right-click context menu in Windows 10 and why this option is hidden by default. This post illustrates the method of removing ‘Open PowerShell window here’ option from right-click context menu in Windows 10, and the method for removing the 'Open PowerShell window here' option from the context menu in the desktop folder menu.

Removing ‘PowerShell window here’ Option from Context Menu of Folder

Step One: Press windows key + R from the keyboard to open the run command. Type regedit and hit enter from the keyboard to open the registry.

Step Two: Go to the following location in the registry.

HKEY_CLASSES_ROOT\Directory\shell\Powershell

Step Three: In the registry, right-click Powershell and then click Permissions.

Step Four: In ‘Permissions for Powershell window’, click Advanced.

Step Five: Click the ‘Change’ link located at the top of the window.

Step Six: Type your account name and click ‘Check Names’ to verify it. Click OK when you are done.

Step Nine: In Powershell subkey, create a new string value called ProgrammaticAccessOnly. (To do thisL Right-click the right window, New -> String Value. Type the name and hit Enter from the keyboard).

That’s it. You won’t see ‘Open PowerShell window here’ option in the context menu when you press shift and then right-click any folder.