SHARE
    TWEET
    Najeebsk

    CMD-POWERSHELL-MENU.reg

    Feb 6th, 2025
    213
    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. ;; CMD HERE - Desktop, Directory, Drive, Background ;;
    4. ;;------------------------------------------------;;
    5. [HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt]
    6. "Icon"="cmd.exe,0"
    7. "MUIVerb"="CMD Here"
    8. "Extended"=-
    9. "SubCommands"=""
    10. [HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt\shell\cmd1]
    11. "MUIVerb"="Open here CMD"
    12. "Icon"="cmd.exe,0"
    13. [HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt\shell\cmd1\command]
    14. @="cmd.exe /s /k pushd \"%V\""
    15. [HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt\shell\cmd2]
    16. "MUIVerb"="Open CMD as administrator"
    17. "HasLUAShield"=""
    18. "Icon"="cmd.exe,0"
    19. [HKEY_CLASSES_ROOT\DesktopBackground\shell\CommandPrompt\shell\cmd2\command]
    20. @="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\""
    21. ;;----------------------------------------;;
    22. ;; PowerShell HERE - Desktop, Directory, Drive ;;
    23. ;;----------------------------------------;;
    24. [HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell]
    25. "Icon"="powershell.exe,0"
    26. "MUIVerb"="PowerShell Here"
    27. "Extended"=-
    28. "SubCommands"=""
    29. [HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell\shell\ps1]
    30. "MUIVerb"="Open here PowerShell"
    31. "Icon"="powershell.exe,0"
    32. [HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell\shell\ps1\command]
    33. @="C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'"
    34. [HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell\shell\ps2]
    35. "MUIVerb"="Open PowerShell as administrator"
    36. "HasLUAShield"=""
    37. "Icon"="powershell.exe,0"
    38. [HKEY_CLASSES_ROOT\DesktopBackground\shell\PowerShell\shell\ps2\command]
    39. @="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"
    40. ;;------------------------------------------------;;
    41. ;; CMD & PowerShell for Directory and Background ;;
    42. ;;------------------------------------------------;;
    43. [HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt]
    44. "Icon"="cmd.exe,0"
    45. "MUIVerb"="CMD Here"
    46. "Extended"=-
    47. "SubCommands"=""
    48. [HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\shell\cmd1]
    49. "MUIVerb"="Open here CMD"
    50. "Icon"="cmd.exe,0"
    51. [HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\shell\cmd1\command]
    52. @="cmd.exe /s /k pushd \"%V\""
    53. [HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\shell\cmd2]
    54. "MUIVerb"="Open CMD as administrator"
    55. "HasLUAShield"=""
    56. "Icon"="cmd.exe,0"
    57. [HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\shell\cmd2\command]
    58. @="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\""
    59. [HKEY_CLASSES_ROOT\Directory\shell\PowerShell]
    60. "Icon"="powershell.exe,0"
    61. "MUIVerb"="PowerShell Here"
    62. "Extended"=-
    63. "SubCommands"=""
    64. [HKEY_CLASSES_ROOT\Directory\shell\PowerShell\shell\ps1]
    65. "MUIVerb"="Open here PowerShell"
    66. "Icon"="powershell.exe,0"
    67. [HKEY_CLASSES_ROOT\Directory\shell\PowerShell\shell\ps1\command]
    68. @="C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'"
    69. [HKEY_CLASSES_ROOT\Directory\shell\PowerShell\shell\ps2]
    70. "MUIVerb"="Open PowerShell as administrator"
    71. "HasLUAShield"=""
    72. "Icon"="powershell.exe,0"
    73. [HKEY_CLASSES_ROOT\Directory\shell\PowerShell\shell\ps2\command]
    74. @="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"
    75. ;;----------------------------------------;;
    76. ;; REMOVE OLD CMD FROM LIBRARY FOLDER ;;
    77. ;;----------------------------------------;;
    78. [-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\CommandPrompt]
    Add Comment
    Please, Sign In to add comment
    Public Pastes
    We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
    Not a member of Pastebin yet?
    Sign Up, it unlocks many cool features!

    AltStyle によって変換されたページ (->オリジナル) /