Policy
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
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows10, Windows10RT, Windows11, Windows81, WindowsRT81, WindowsServer2012R2, WindowsServer2016
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 values
How enabled and disabled states update the registry.
| Registry location | Type | Enabled value | Disabled value |
|---|---|---|---|
| HKCU\Software\Policies\Microsoft\Windows\EdgeUI\ShowCommandPromptOnWinX | REG_DWORD | 1 | 0 |
Policy elements
Inputs and configuration options exposed by this policy.
This policy has no additional user input fields.
Other policies in this category
Explore related policies at the same level.
- UserAllow edge swipeAt least Windows Server 2016, Windows 10
- ComputerAllow edge swipeAt least Windows Server 2016, Windows 10
- UserDisable help tipsAt least Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1
- ComputerDisable help tipsAt least Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1
- UserDo not show recent apps when the mouse is pointing to the upper-left corner of the screenAt least Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1
- UserSearch, Share, Start, Devices, and Settings don't appear when the mouse is pointing to the upper-right corner of the screenAt least Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1
- UserTurn off switching between recent appsAt least Windows Server 2012, Windows 8 or Windows RT
- UserTurn off tracking of app usageAt least Windows Server 2012, Windows 8 or Windows RT