Agregue "PowerShell aquí" y "Ventana de comandos aquí" al menú contextual para unidades, carpetas y directorios actuales

Agregue "PowerShell aquí" y "Ventana de comandos aquí" al menú contextual para unidades, carpetas y directorios actuales

Intenté aplicar y editar los archivos .reg, por ejemplo,aquíyaquí

Pero parece que no puedo obtener una opción "PowerShell aquí" y "Ventana de comandos" aquí en todos los menús contextuales sin mantener presionada la tecla Mayús en algunos.

¿Hay alguna manera de agregarlos a cada menú contextual (es decir, unidades, carpetas y espacios en blanco dentro de una carpeta) con un solo archivo .reg?

Esta pregunta es diferenteÉste

en eso también incluyo hacer clic derecho en el espacio en blanco de una carpeta abierta actualmente (no solo hacer clic directamente en una carpeta o unidad).

Respuesta1

Verifique que el valor de cadena "extendido" haya sido renombrado o eliminado para cumplir con el requisito de "cambio".

En cuanto a lo otro, agregue un valor de cadena llamado "NoWorkingDirectory". Esto permitirá que ambos aparezcan incluso cuando no se haga clic en ninguna carpeta.

Respuesta2

Solución para PowerShell:

  1. "Win + R", ejecute regedit para abrir el Editor del Registro.
  2. Vaya a las ubicaciones respectivamente:

    HKEY_CLASSES_ROOT\Directorio\shell\Powershell HKEY_CLASSES_ROOT\Directorio\Background\shell\Powershell HKEY_CLASSES_ROOT\Drive\shell\Powershell

Para cada clave, haga clic derecho en la tecla en el panel izquierdo, "Permisos...", "Avanzado", cambie el propietario a "Administradores", luego asigne "Control total" - "Permitir" a "Administradores". Presiona OK".

  1. Para cada clave, elimine la clave "Extendida" en el panel derecho.

fuente

Respuesta3

Windows Registry Editor Version 5.00

; Add_enhanced_cmd_and_powershell_to_menu.reg; Esto agrega opciones del submenú Command y Powershell

[HKEY_CLASSES_ROOT\Directory\Background\shell\01MenuCmd] "ExtendedSubCommandsKey"="Directorio\ContextMenus\MenuCmd" "Icon"="cmd.exe" "MUIVerb"="Símbolos del sistema"

[HKEY_CLASSES_ROOT\Directory\Background\shell\02MenuPowerShell] "ExtendedSubCommandsKey"="Directorio\ContextMenus\MenuPowerShell" "Icon"="powershell.exe" "MUIVerb"="Mensajes de PowerShell"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open] "Icon"="cmd.exe" "MUIVerb"="Símbolo del sistema"

[HKEY_CLASSES_ROOT\Directorio\ContextMenus\MenuCmd\shell\open\command] @="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas] "HasLUAShield"="" "Icon"="cmd.exe" "MUIVerb"="Símbolo del sistema elevado"

[HKEY_CLASSES_ROOT\Directorio\ContextMenus\MenuCmd\shell\runas\command] @="cmd.exe /s /k pushd \"%V\""

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open] "Icon"="powershell.exe" "MUIVerb"="PowerShell"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open\command] @="powershell.exe -noexit -command Establecer ubicación '%V'"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas] "HasLUAShield"="" "Icon"="powershell.exe" "MUIVerb"="PowerShell elevado"

[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas\command] @="powershell.exe -noexit -command Establecer ubicación '%V'"

[HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd] "ExtendedSubCommandsKey"="Directorio\ContextMenus\MenuCmd" "Icon"="cmd.exe" "MUIVerb"="Símbolos del sistema"

[HKEY_CLASSES_ROOT\Directory\shell\02MenuPowerShell] "ExtendedSubCommandsKey"="Directorio\ContextMenus\MenuPowerShell" "Icon"="powershell.exe" "MUIVerb"="Mensajes de PowerShell"

Respuesta4

Creé una solución totalmente automatizada para agregar elementos de contexto PS y CMD. Simplemente ejecute set_registry.cmd y actualizará el registro para agregar dos botones cuando haga clic en RMB en la carpeta o dentro de alguna carpeta abierta:

Esto cambiará el propietario de las claves de registro a administrador y agregará menús contextuales.
Cambie el registro para habilitar los menús contextuales de PS y CWD

información relacionada