Prevent users from replacing the Command Prompt with Windows PowerShell in the menu they see when they right-click the lower-left corner or press the Windows logo key+X
- Policy ID
- ShowCommandPromptOnWinX
- Scope
- User Configuration
- Supported on
- At least Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Edge UI
Description
This policy setting allows you to prevent users from replacing the Command Prompt with Windows PowerShell in the menu they see when they right-click the lower-left corner or press the Windows logo key + X.
If you enable this policy setting, the Command Prompt will always be listed in that menu, and users won't be able to replace it with Windows PowerShell. Users will still be able to access Windows PowerShell, but not from that menu.
If you disable or don't configure this policy setting, Command Prompt will be listed in the menu by default, and users can configure this setting.
Registry
UserHKEY_CURRENT_USER
- ShowCommandPromptOnWinXREG_DWORD