Recently, I've shown you guys how to add 'Open Command Prompt Window here' option to the right-click context menu. That method allows you to keep the PowerShell option. If you are not a PowerShell user then removing it can make the menu clutter-free. With that in mind, follow the below steps to remove Open PowerShell window here option from the right-click context menu in Windows 10.
Important: To make this happen we need to edit a protected registry value. So, backup registry before making any changes. If you do something wrong while making changes, you can restore the registry with just a few clicks.
Remove Open PowerShell Window Here option from Right-click Context Menu
Just like with adding the Command Prompt option, we need to modify a single registry value. As soon as you do that, the PowerShell option will be removed from the context menu. Like I said before, only proceed after creating a registry backup.
1. First, open Windows Registry Editor by searching for "Registry Editor" in the start menu. You can also use the "regedit" Run command.
2. In the Registry Editor, copy the below path, paste it in the address bar and press Enter. You will be automatically taken to the target folder that contains the value we need to change.
3. By default, the key is protected from making any change. If you do try to make changes, you will be greeted with "Access Denied" message. To avoid this, we first get permission to edit the value. So, right-click on the PowerShell folder and select the "Permissions" option.
4. Before you can assign the permission, you need to change the owner of the folder. So, in the permissions window, click on the "Advanced" button.
5. In the subsequent window, click on the "Change" link appearing next to "Owner: TrustedInstaller".
6. Now, enter "administrators" in the blank field and click on the "Check Names" button.
7. The above action will automatically find and fill the Administrators group path. Click on the "Ok" button.
8. Now, select the "Replace owner on subcontainers and objects" checkbox and click on the "Apply" and "Ok" buttons. This will change the owner from Trusted Installer to Administrators.
9. After changing the owner, select "Administrators" from the Groups or User Names section and then select the checkbox under "Allow" next to "Full Control". Click "Apply" and "Ok" buttons to save changes.
10. Now, right-click on the "ShowBasedOnVelocityId" value on the right-panel and select "Rename".
11. Name the key from "ShowBasedOnVelocityId" to "HideBasedOnVelocityId".
12. Close Registry Editor.
That is it. You are done editing the registry. If you Shift + Right-click on any folder, you will no longer see the "Open PowerShell Window Here" option in the context menu.
If you are still seeing the option, reboot the system and check again.
Hope that helps. If you are stuck in the process or need some help. Comment below and I will try to help as much as possible.
If you are frequently open the Command Prompt as admin, follow this guide to know how to open Command Prompt always as admin in Windows 10.