Najeebsk

CMD-POWERSHELL-MENU.reg

Feb 6th, 2025
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
REG 3.89 KB | None | 0 0
  1. Windows Registry Editor Version 5.00
  2.  
  3.  
  4. ;;------------------------------------------------;;
  5. ;;  CMD HERE - Desktop, Directory, Drive, Background  ;;
  6. ;;------------------------------------------------;;
  7.  
  8. [HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt]
  9. "Icon"="cmd.exe,0"
  10. "MUIVerb"="CMD Here"
  11. "Extended"=-
  12. "SubCommands"=""
  13.  
  14. [HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt\shell\cmd1]
  15. "MUIVerb"="Open here CMD"
  16. "Icon"="cmd.exe,0"
  17.  
  18. [HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt\shell\cmd1\command]
  19. @="cmd.exe /s /k pushd \"%V\""
  20.  
  21. [HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt\shell\cmd2]
  22. "MUIVerb"="Open CMD as administrator"
  23. "HasLUAShield"=""
  24. "Icon"="cmd.exe,0"
  25.  
  26. [HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt\shell\cmd2\command]
  27. @="cmd /c echo|set/p=\"%V\"|powershell -NoP -W 1 -NonI -NoL \"SaPs 'cmd' -Args '/c \"\"\"cd /d',$([char]34+$Input+[char]34),'^&^& start /b cmd.exe\"\"\"' -Verb RunAs\""
  28.  
  29.  
  30. ;;----------------------------------------;;
  31. ;;  PowerShell HERE - Desktop, Directory, Drive  ;;
  32. ;;----------------------------------------;;
  33.  
  34. [HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell]
  35. "Icon"="powershell.exe,0"
  36. "MUIVerb"="PowerShell Here"
  37. "Extended"=-
  38. "SubCommands"=""
  39.  
  40. [HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell\shell\ps1]
  41. "MUIVerb"="Open here PowerShell"
  42. "Icon"="powershell.exe,0"
  43.  
  44. [HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell\shell\ps1\command]
  45. @="C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'"
  46.  
  47. [HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell\shell\ps2]
  48. "MUIVerb"="Open PowerShell as administrator"
  49. "HasLUAShield"=""
  50. "Icon"="powershell.exe,0"
  51.  
  52. [HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell\shell\ps2\command]
  53. @="powershell -NoP -W 1 -NoI -NoL -Command Start-Process 'C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe' -ArgumentList '-NoExit -Command Set-Location -LiteralPath %V' -Verb RunAs"
  54.  
  55.  
  56. ;;------------------------------------------------;;
  57. ;;  CMD & PowerShell for Directory and Background  ;;
  58. ;;------------------------------------------------;;
  59.  
  60. [HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt]
  61. "Icon"="cmd.exe,0"
  62. "MUIVerb"="CMD Here"
  63. "Extended"=-
  64. "SubCommands"=""
  65.  
  66. [HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\shell\cmd1]
  67. "MUIVerb"="Open here CMD"
  68. "Icon"="cmd.exe,0"
  69.  
  70. [HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\shell\cmd1\command]
  71. @="cmd.exe /s /k pushd \"%V\""
  72.  
  73. [HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\shell\cmd2]
  74. "MUIVerb"="Open CMD as administrator"
  75. "HasLUAShield"=""
  76. "Icon"="cmd.exe,0"
  77.  
  78. [HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\shell\cmd2\command]
  79. @="cmd /c echo|set/p=\"%L\"|powershell -NoP -W 1 -NoI -NoL \"SaPs 'cmd' -Args '/c \"\"\"cd /d',$([char]34+$Input+[char]34),'^&^& start /b cmd.exe\"\"\"' -Verb RunAs\""
  80.  
  81.  
  82. [HKEY_CLASSES_ROOT\Directory\shell\PowerShell]
  83. "Icon"="powershell.exe,0"
  84. "MUIVerb"="PowerShell Here"
  85. "Extended"=-
  86. "SubCommands"=""
  87.  
  88. [HKEY_CLASSES_ROOT\Directory\shell\PowerShell\shell\ps1]
  89. "MUIVerb"="Open here PowerShell"
  90. "Icon"="powershell.exe,0"
  91.  
  92. [HKEY_CLASSES_ROOT\Directory\shell\PowerShell\shell\ps1\command]
  93. @="C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'"
  94.  
  95. [HKEY_CLASSES_ROOT\Directory\shell\PowerShell\shell\ps2]
  96. "MUIVerb"="Open PowerShell as administrator"
  97. "HasLUAShield"=""
  98. "Icon"="powershell.exe,0"
  99.  
  100. [HKEY_CLASSES_ROOT\Directory\shell\PowerShell\shell\ps2\command]
  101. @="powershell -NoP -W 1 -NoI -NoL -Command Start-Process 'C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe' -ArgumentList '-NoExit -Command Set-Location -LiteralPath %V' -Verb RunAs"
  102.  
  103.  
  104. ;;----------------------------------------;;
  105. ;;  REMOVE OLD CMD FROM LIBRARY FOLDER  ;;
  106. ;;----------------------------------------;;
  107.  
  108. [-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\CommandPrompt]
Add Comment
Please, Sign In to add comment