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 Seven: Check ‘Replace owner on subcontainers and objects’. Click Apply and then OK.

Step Eight: In ‘Permissions for Powershell window’, select administrator group. Check Allow for ‘Full Control’ option. Click Apply and then OK.

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.

Removing ‘Open PowerShell window here’ Option from Context Menu of the Background and Desktop Folder Step One: Press windows key + R from the keyboard to open 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\Background\shell\Powershell

Step Three: Right-click the PowerShell subkey, then click Permissions.

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

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

Step Six: Type your user account name and then click ‘Check Names’ to verify it. When you are done, click OK.

Step Seven: Check ‘Replace owner on subcontainers and objects.’ Click Apply and then OK.

Step Eight: In ‘Permissions for Powershell’ window, select Administrators group. Check ‘Allow’ for ‘Full Control’ option. Click Apply and then OK.

Step Nine: In Powershell subkey, create a new string value. (To do thisL Right-click the right window, New -> String Value).

Step Ten: Type ‘ProgrammaticAccessOnly’ and then hit Enter from the keyboard.

That was the final step. When you press shift and then right-click the desktop or folder background, you won’t see any option ‘Open PowerShell window here’ in the context menu.

转载于:https://my.oschina.net/zhaoqian/blog/1818462

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值