0

Hola, quisiera poder tener el PowerShell nativo de Windows 10 en el menú contextual tal cual se muestra en la imagen

introducir la descripción de la imagen aquí

pero por más que replique lo que hace el PowerShell 7 no pude lograrlo, me refiero a editar el registro de windows pero nada pude hacer ojala me pudieran ayudar

4
  • ¿Existe el mismo problema con powershell versión 5? el 15 may. 2021 a las 13:53
  • No entendí tu pregunta 🧐 el 15 may. 2021 a las 15:13
  • Es posible que esto ayude. howtogeek.com/165268/… el 15 may. 2021 a las 16:45
  • Pero también quiero agregarlo con la opción de administrador 😥 el 15 may. 2021 a las 21:56

2 respuestas 2

0

Yo lo hago de esta manera. (Es un .reg) Lo importa al registro y crea el menú contextual.

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\Directory\Background\shell\PSCustomMenu] 
"Icon"="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe"
"MUIVerb"="PowerShell"
"SubCommands"=""


[HKEY_CLASSES_ROOT\Directory\Background\shell\PSCustomMenu\Shell\PS]
    @="Open here"
    "Icon"="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe"
    

[HKEY_CLASSES_ROOT\Directory\Background\shell\PSCustomMenu\Shell\PS\command]
@="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -windowstyle hidden -Command \"Start-Process C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe  -ArgumentList '-NoProfile', '-NoExit', '-Command Set-Location -LiteralPath %V'\""


[HKEY_CLASSES_ROOT\Directory\Background\shell\PSCustomMenu\Shell\PSAdmin]
    @="Open here as Administrator"
    "Icon"="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe,1"
    
    
[HKEY_CLASSES_ROOT\Directory\Background\shell\PSCustomMenu\Shell\PSAdmin\command]
@="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -windowstyle hidden -Command \"Start-Process C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe  -ArgumentList '-NoProfile', '-NoExit', '-Command Set-Location -LiteralPath %V' -Verb runAs\""
2
-1

Mira lo que me sale cuando lo ejecuto

introducir la descripción de la imagen aquí

1
  • Creo que no importaste correctamente el archivo .reg ¿como lo hiciste?
    – Dany
    el 2 jul. 2021 a las 11:01

Tu Respuesta

Al pulsar en “Publica tu respuesta”, muestras tu consentimiento a nuestros términos de servicio, política de privacidad y política de cookies

¿No es la respuesta que buscas? Examina otras preguntas con la etiqueta o formula tu propia pregunta.