Impedisci agli utenti di sostituire Prompt dei comandi con Windows PowerShell nel menu visualizzato facendo clic con il pulsante destro del mouse sull'angolo inferiore sinistro o premendo il tasto logo Windows+X: valore del Registro di sistema ShowCommandPromptOnWinXUtenteHKCU\Software\Policies\Microsoft\Windows\EdgeUI

ID criterio
ShowCommandPromptOnWinX
Ambito
Configurazione utente
Supportato in
Almeno Windows Server 2012 R2, Windows 8.1 o Windows RT 8.1
Origine
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
Categoria
Componenti di Windows › Interfaccia utente bordi

Registro

ShowCommandPromptOnWinX

REG_DWORDUtente
Valore abilitato
1
Valore disabilitato
0
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\EdgeUI]

; Opzioni (usarne solo una)
; Abilitato
"ShowCommandPromptOnWinX"=dword:00000001
; Disabilitato
"ShowCommandPromptOnWinX"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Abilitato
reg add "HKCU\Software\Policies\Microsoft\Windows\EdgeUI" /v "ShowCommandPromptOnWinX" /t REG_DWORD /d 1 /f
:: Disabilitato
reg add "HKCU\Software\Policies\Microsoft\Windows\EdgeUI" /v "ShowCommandPromptOnWinX" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\EdgeUI' -Force | Out-Null

# Opzioni (usarne solo una)
# Abilitato
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\EdgeUI' -Name 'ShowCommandPromptOnWinX' -PropertyType DWord -Value 1 -Force | Out-Null
# Disabilitato
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\EdgeUI' -Name 'ShowCommandPromptOnWinX' -PropertyType DWord -Value 0 -Force | Out-Null