Advertisement
lughp

CMD & PowerShell Context Menu

Jul 1st, 2019
538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
REG 2.08 KB | None | 0 0
  1. Windows Registry Editor Version 5.00
  2.  
  3. ; Command Prompt
  4. [HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd]
  5. "MUIVerb"="Command Prompt"
  6. "Icon"="cmd.exe"
  7. "ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd"
  8.  
  9. [HKEY_CLASSES_ROOT\Directory\background\shell\01MenuCmd]
  10. "MUIVerb"="Command Prompt"
  11. "Icon"="cmd.exe"
  12. "ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd"
  13.  
  14. [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open]
  15. "MUIVerb"="Command Prompt"
  16. "Icon"="cmd.exe"
  17.  
  18. [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open\command]
  19. @="cmd.exe /s /k pushd \"%V\""
  20.  
  21. [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas]
  22. "MUIVerb"="Command Prompt (Adm)"
  23. "Icon"="cmd.exe"
  24. "HasLUAShield"=""
  25.  
  26. [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas\command]
  27. @="cmd.exe /s /k pushd \"%V\""
  28.  
  29. ; PowerShell
  30. [HKEY_CLASSES_ROOT\Directory\shell\02MenuPowerShell]
  31. "MUIVerb"="Windows PowerShell"
  32. "Icon"="powershell.exe"
  33. "ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuPowerShell"
  34.  
  35. [HKEY_CLASSES_ROOT\Directory\background\shell\02MenuPowerShell]
  36. "MUIVerb"="Windows PowerShell"
  37. "Icon"="powershell.exe"
  38. "ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuPowerShell"
  39.  
  40. [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open]
  41. "MUIVerb"="Windows PowerShell"
  42. "Icon"="powershell.exe"
  43.  
  44. [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open\command]
  45. @="powershell.exe -noexit -command Set-Location '%V'"
  46.  
  47. [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas]
  48. "MUIVerb"="Windows PowerShell (Adm)"
  49. "Icon"="powershell.exe"
  50. "HasLUAShield"=""
  51.  
  52. [HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas\command]
  53. @="powershell.exe -noexit -command Set-Location '%V'"
  54.  
  55. ;Ensure OS Entries are on the Extended Menu (Shift-Right Click)
  56.  [HKEY_CLASSES_ROOT\Directory\shell\cmd]
  57. "Extended"=""
  58.  
  59. [HKEY_CLASSES_ROOT\Directory\background\shell\cmd]
  60. "Extended"=""
  61.  
  62. [HKEY_CLASSES_ROOT\Directory\shell\Powershell]
  63. "Extended"=""
  64.  
  65. [HKEY_CLASSES_ROOT\Directory\background\shell\Powershell]
  66. "Extended"=""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement