When you right-click on the Start button in Windows 10, you may have noticed an option called "Open Windows PowerShell." This option allows you to quickly access the powerful command-line tool called PowerShell. However, if you don't use PowerShell or prefer not to have it easily accessible from the right-click menu, you can disable it. In this article, we will show you how to disable the default "Open Windows PowerShell" right-click menu in Windows 10.
Method 1: Using Group Policy Editor
Note: Group Policy Editor is only available in Windows 10 Pro, Enterprise, and Education editions. If you are using Windows 10 Home, please refer to Method 2.
- Press the
Win + Rkey combination to open the Run dialog box. - Type
gpedit.mscand press Enter to open the Group Policy Editor. - In the Group Policy Editor window, navigate to
User Configuration > Administrative Templates > Start Menu and Taskbar. - On the right-hand side, double-click on the policy named
Remove Windows PowerShell from the right-click context menu. - Select the Enabled option and click Apply and then OK.
- Close the Group Policy Editor and restart your computer.
Method 2: Using Registry Editor
Note: Modifying the registry can be risky if not done correctly. It is recommended to create a backup of your registry or create a system restore point before proceeding.
- Press the
Win + Rkey combination to open the Run dialog box. - Type
regeditand press Enter to open the Registry Editor. - In the Registry Editor window, navigate to the following path:
HKEY_CLASSES_ROOT\Directory\Background\shell\Windows.PowerShell - Right-click on the
Windows.PowerShellkey and select Delete. - Click Yes to confirm the deletion.
- Close the Registry Editor and restart your computer.
After following either of the above methods, the "Open Windows PowerShell" option will no longer appear when you right-click on the Start button or anywhere else in the Windows 10 interface.
If you ever decide to enable the "Open Windows PowerShell" option again, you can simply reverse the steps mentioned above or restore your registry/system backup.
Conclusion
Disabling the default "Open Windows PowerShell" right-click menu in Windows 10 can help declutter your context menu and prevent accidental access to PowerShell. Whether you choose to use Group Policy Editor or Registry Editor, both methods are effective in achieving the desired result.
References
| Number | Source |
|---|---|
| 1 | Windows Central |
| 2 | Windows Central |