无忧启动论坛

标题: 鼠标右键 使用SYSTEM权限打开 CMD窗口 绿色版 [打印本页]

作者: qq8899399    时间: 2024-8-30 07:23
标题: 鼠标右键 使用SYSTEM权限打开 CMD窗口 绿色版
工具来自 https://github.com/Raymai97/SuperCMD

修改集成右键菜单

任意位置 可以打开SYSTEM权限的CMD窗口




默认解压到C:\Tools\SuperCMD后运行批处理 进行集成(安装目录可自己更改)













下载地址 https://cloud.189.cn/web/share?code=nQzq6rqeYVBv(访问码:j03c)



作者: qq8899399    时间: 2024-8-30 07:30
管理员权限右键方式如下




鼠标右键添加 右键打开CMD


  1. Windows Registry Editor Version 5.00

  2. #在此处打开命令提示符 CMD 窗口
  3. [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere]
  4. @="在此处打开 CMD"
  5. "Icon"="cmd.exe"

  6. [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere\command]
  7. @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs""

  8. [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere]
  9. @="在此处打开 CMD"
  10. "Icon"="cmd.exe"

  11. [HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command]
  12. @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs""

  13. [HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere]
  14. @="在此处打开 CMD"
  15. "Icon"="cmd.exe"

  16. [HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere\command]
  17. @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs""

  18. [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere]
  19. @="在此处打开 CMD"
  20. "Icon"="cmd.exe"

  21. [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere\command]
  22. @="PowerShell -windowstyle hidden -Command "Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs""
复制代码



鼠标右键删除 右键打开CMD
  1. Windows Registry Editor Version 5.00

  2. [-HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere]

  3. [-HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere]

  4. [-HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere]

  5. [-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\OpenCmdHere]

复制代码


鼠标右键添加 右键打开PowerShell
  1. Windows Registry Editor Version 5.00


  2. #在此处打开 PowerShell

  3. [HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin]
  4. @="在此处打开 PowerShell"
  5. "Extended"=-
  6. "Icon"="powershell.exe"
  7. "ShowBasedOnVelocityId"=dword:00639bc8

  8. [HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin\command]
  9. @="powershell.exe -windowstyle hidden -Command $stpath = pwd; Start-Process PowerShell -ArgumentList \\"-NoExit\\", \\"-Command Set-Location -literalPath '%V'\\" -verb RunAs"


  10. [HKEY_CLASSES_ROOT\Directory\shell\PowerShellAsAdmin]
  11. @="在此处打开 PowerShell"
  12. "Extended"=-
  13. "Icon"="powershell.exe"
  14. "ShowBasedOnVelocityId"=dword:00639bc8

  15. [HKEY_CLASSES_ROOT\Directory\shell\PowerShellAsAdmin\command]
  16. @="powershell.exe -windowstyle hidden -Command $stpath = pwd; Start-Process PowerShell -ArgumentList \\"-NoExit\\", \\"-Command Set-Location -literalPath '%V'\\" -verb RunAs"


  17. [HKEY_CLASSES_ROOT\Drive\shell\PowerShellAsAdmin]
  18. @="在此处打开 PowerShell"
  19. "Extended"=-
  20. "Icon"="powershell.exe"
  21. "ShowBasedOnVelocityId"=dword:00639bc8

  22. [HKEY_CLASSES_ROOT\Drive\shell\PowerShellAsAdmin\command]
  23. @="powershell.exe -windowstyle hidden -Command $stpath = pwd; Start-Process PowerShell -ArgumentList \\"-NoExit\\", \\"-Command Set-Location -literalPath '%V'\\" -verb RunAs"


  24. [-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\PowerShellAsAdmin]


  25. ; To allow mapped drives to be available in elevated PowerShell
  26. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
  27. "EnableLinkedConnections"=dword:00000001
复制代码


鼠标右键删除 右键打开PowerShell
  1. Windows Registry Editor Version 5.00


  2. [-HKEY_CLASSES_ROOT\Directory\Background\shell\PowerShellAsAdmin]

  3. [-HKEY_CLASSES_ROOT\Directory\shell\PowerShellAsAdmin]

  4. [-HKEY_CLASSES_ROOT\Drive\shell\PowerShellAsAdmin]

  5. [-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\PowerShellAsAdmin]
复制代码



作者: 窄口牛    时间: 2024-8-30 07:36
cmd要被割了。
作者: yyz2191958    时间: 2024-8-30 07:44
qq8899399 发表于 2024-8-30 07:30
管理员权限右键方式如下

收藏  谢谢
作者: netsurf    时间: 2024-8-30 07:54
谢谢分享。
作者: mpyh2000    时间: 2024-8-30 08:20
感谢分享!
作者: martin313    时间: 2024-8-30 08:44
qq8899399 发表于 2024-8-30 07:30
管理员权限右键方式如下

明白了,学习了
作者: louther    时间: 2024-8-30 08:45
没啥用处
作者: tanglf    时间: 2024-8-30 08:53
比起 管理员 这个能干啥?
作者: sulong    时间: 2024-8-30 09:04
system权限可够高了
作者: shiqiang    时间: 2024-8-30 09:08
很不错的右键工具,感谢分享。
作者: whyby    时间: 2024-8-30 09:32
谢谢楼主分享....
作者: 孟仁飞    时间: 2024-8-30 09:45
学习
作者: yc2428    时间: 2024-8-30 10:09
谢谢分享。
作者: 2011lanz    时间: 2024-8-30 10:32
方便快捷的小工具,谢谢分享!
作者: 2011lilzm    时间: 2024-8-30 10:40
qq8899399 发表于 2024-8-30 07:30
管理员权限右键方式如下

你好,集成超级管理员的单注册表文件有么?
作者: wang1126    时间: 2024-8-30 10:48
谢谢分享
作者: dancanpc    时间: 2024-8-30 11:05
很好的右键工具,感谢分享
作者: ynb168c    时间: 2024-8-30 11:07

感谢分享!
作者: 1G空间100元    时间: 2024-8-30 11:14
这个权限可以
作者: zlq_hysy    时间: 2024-8-30 11:17
收藏一下,这些小脚本很实用
作者: Aronnax    时间: 2024-8-30 11:27
这下方便多了
作者: guong    时间: 2024-8-30 12:37

谢谢楼主分享
作者: chibuzhu    时间: 2024-8-30 12:57
感谢分享
作者: AcidBurn    时间: 2024-8-30 13:23
谢谢分享
作者: fegr    时间: 2024-8-30 13:52
感谢分享
作者: qq8899399    时间: 2024-8-30 15:04
2011lilzm 发表于 2024-8-30 10:40
你好,集成超级管理员的单注册表文件有么?

system权限 CMD 先要条件是 有supercmd程序    在顶楼
作者: qq8899399    时间: 2024-8-30 15:11
2011lilzm 发表于 2024-8-30 10:40
你好,集成超级管理员的单注册表文件有么?
  1. @ECHO off&PUSHD %~DP0 &TITLE SuperCMD 右键菜单
  2. >NUL 2>&1 REG.exe query "HKU\S-1-5-19" || (
  3. ECHO SET UAC = CreateObject^("Shell.Application"^) > "%TEMP%\Getadmin.vbs"
  4. ECHO UAC.ShellExecute "%~f0", "%1", "", "runas", 1 >> "%TEMP%\Getadmin.vbs"
  5. "%TEMP%\Getadmin.vbs"
  6. DEL /f /q "%TEMP%\Getadmin.vbs" 2>NUL
  7. Exit /b
  8. )
  9. if "%PROCESSOR_ARCHITECTURE%"=="x86" set bits=32
  10. if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set bits=64

  11. :Menu
  12. SET Options=
  13. ECHO.&ECHO. 1.安装 SuperCMD 鼠标右键菜单
  14. ECHO.&ECHO. 2.卸载 SuperCMD 鼠表右键菜单
  15. ECHO.&ECHO. 3.退出
  16. ECHO.
  17. SET /P Options=请输入选择项目序号并按回车确认:
  18. IF /I "%Options%"=="1" GOTO install
  19. IF /I "%Options%"=="2" GOTO uninstall
  20. IF /I "%Options%"=="3" GOTO OUT
  21. ECHO.&ECHO.序号无效,请重新输入!
  22. PING -n 2 127.1>NUL
  23. CLS
  24. GOTO Menu

  25. :install
  26. Reg.exe add "HKCU\Software\Classes\exefile\shell\runasSYSTEM_TI" /ve /t REG_SZ /d "以 S&YSTEM身份运行 (TI)" /f
  27. Reg.exe add "HKCU\Software\Classes\exefile\shell\runasSYSTEM_TI" /v "MultiSelectModel" /t REG_SZ /d "Single" /f
  28. Reg.exe add "HKCU\Software\Classes\exefile\shell\runasSYSTEM_TI" /v "Icon" /t REG_SZ /d "%~dp0SuperCMDx%bits%.exe" /f
  29. Reg.exe add "HKCU\Software\Classes\exefile\shell\runasSYSTEM_TI\command" /ve /t REG_SZ /d ""%~dp0SuperCMDx%bits%.exe" /TI /ShowWait /Run:"%%1" %%*" /f
  30. Reg.exe add "HKCU\Software\Classes\batfile\shell\runasSYSTEM_TI" /ve /t REG_SZ /d "以 S&YSTEM身份运行 (TI)" /f
  31. Reg.exe add "HKCU\Software\Classes\batfile\shell\runasSYSTEM_TI" /v "MultiSelectModel" /t REG_SZ /d "Single" /f
  32. Reg.exe add "HKCU\Software\Classes\batfile\shell\runasSYSTEM_TI" /v "Icon" /t REG_SZ /d "%~dp0SuperCMDx%bits%.exe" /f
  33. Reg.exe add "HKCU\Software\Classes\batfile\shell\runasSYSTEM_TI\command" /ve /t REG_SZ /d ""%~dp0SuperCMDx%bits%.exe" /TI /ShowWait /Run:"%%1" %%*" /f
  34. Reg.exe add "HKCU\Software\Classes\cmdfile\shell\runasSYSTEM_TI" /ve /t REG_SZ /d "以 S&YSTEM身份运行 (TI)" /f
  35. Reg.exe add "HKCU\Software\Classes\cmdfile\shell\runasSYSTEM_TI" /v "MultiSelectModel" /t REG_SZ /d "Single" /f
  36. Reg.exe add "HKCU\Software\Classes\cmdfile\shell\runasSYSTEM_TI" /v "Icon" /t REG_SZ /d "%~dp0SuperCMDx%bits%.exe" /f
  37. Reg.exe add "HKCU\Software\Classes\cmdfile\shell\runasSYSTEM_TI\command" /ve /t REG_SZ /d ""%~dp0SuperCMDx%bits%.exe" /TI /ShowWait /Run:"%%1" %%*" /f

  38. Reg.exe add "HKCR\Directory\shell\OpenCmdHereSuperCMD" /ve /t REG_SZ /d "在此处打开 SuperCMD" /f
  39. Reg.exe add "HKCR\Directory\shell\OpenCmdHereSuperCMD" /v "Icon" /t REG_SZ /d "%~dp0SuperCMDx%bits%.exe" /f
  40. Reg.exe add "HKCR\Directory\shell\OpenCmdHereSuperCMD\command" /ve /t REG_SZ /d "%~dp0SuperCMDx%bits%.exe /ShowWait /TI /Run:"cmd.exe" /s,/k, pushd,%%V & "cmd.exe" /s,/k, Title SuperCMD SYSTEM 权限" /f
  41. Reg.exe add "HKCR\Directory\Background\shell\OpenCmdHereSuperCMD" /ve /t REG_SZ /d "在此处打开 SuperCMD" /f
  42. Reg.exe add "HKCR\Directory\Background\shell\OpenCmdHereSuperCMD" /v "Icon" /t REG_SZ /d "%~dp0SuperCMDx%bits%.exe" /f
  43. Reg.exe add "HKCR\Directory\Background\shell\OpenCmdHereSuperCMD\command" /ve /t REG_SZ /d "%~dp0SuperCMDx%bits%.exe /ShowWait /TI /Run:"cmd.exe" /s,/k, pushd,%%V & "cmd.exe" /s,/k, Title SuperCMD SYSTEM 权限" /f
  44. Reg.exe add "HKCR\Drive\shell\OpenCmdHereSuperCMD" /ve /t REG_SZ /d "在此处打开 SuperCMD" /f
  45. Reg.exe add "HKCR\Drive\shell\OpenCmdHereSuperCMD" /v "Icon" /t REG_SZ /d "%~dp0SuperCMDx%bits%.exe" /f
  46. Reg.exe add "HKCR\Drive\shell\OpenCmdHereSuperCMD\command" /ve /t REG_SZ /d "%~dp0SuperCMDx%bits%.exe /ShowWait /TI /Run:"cmd.exe" /s,/k, pushd,%%V & "cmd.exe" /s,/k, Title SuperCMD SYSTEM 权限" /f
  47. Reg.exe add "HKCR\LibraryFolder\background\shell\OpenCmdHereSuperCMD" /ve /t REG_SZ /d "在此处打开 SuperCMD" /f
  48. Reg.exe add "HKCR\LibraryFolder\background\shell\OpenCmdHereSuperCMD" /v "Icon" /t REG_SZ /d "%~dp0SuperCMDx%bits%.exe" /f
  49. Reg.exe add "HKCR\LibraryFolder\background\shell\OpenCmdHereSuperCMD\command" /ve /t REG_SZ /d "%~dp0SuperCMDx%bits%.exe /ShowWait /TI /Run:"cmd.exe" /s,/k, pushd,%%V & "cmd.exe" /s,/k, Title SuperCMD SYSTEM 权限" /f


  50. powershell -inputformat none -outputformat none -NonInteractive -Command "Add-MpPreference -ControlledFolderAccessAllowedApplications '%~dp0SuperCMDx%bits%.exe'"
  51. exit

  52. :uninstall
  53. reg delete "HKCU\Software\Classes\exefile\shell\runasSYSTEM_TI" /f
  54. Reg.exe delete "HKCR\Directory\Background\shell\OpenCmdHereSuperCMD" /f
  55. Reg.exe delete "HKCR\Directory\shell\OpenCmdHereSuperCMD" /f
  56. Reg.exe delete "HKCR\Drive\shell\OpenCmdHereSuperCMD" /f
  57. Reg.exe delete "HKCR\LibraryFolder\Background\shell\OpenCmdHereSuperCMD" /f

  58. powershell -inputformat none -outputformat none -NonInteractive -Command "Remove-MpPreference -ControlledFolderAccessAllowedApplications '%~dp0SuperCMDx%bits%.exe'"
  59. exit

  60. :OUT
  61. exit
复制代码



批处理如上~

作者: zhenghui    时间: 2024-8-30 15:37
qq8899399 发表于 2024-8-30 07:30
管理员权限右键方式如下

还是你的牛哈、拿走了感谢
作者: hhhuuu    时间: 2024-8-30 16:25
学习学习
作者: wn168cn@163.com    时间: 2024-8-30 17:51
感谢分享
作者: wu733    时间: 2024-8-30 18:33
不错,不错
作者: wu733    时间: 2024-8-30 18:41
请教,如何在右键计算机添加“在此处打开PowerShell”?
作者: 呵呵#1861    时间: 2024-8-30 18:43
谢谢分享
作者: 呵呵#1861    时间: 2024-8-30 18:43
谢谢分享
作者: 呵呵#1861    时间: 2024-8-30 18:43
谢谢分享
作者: ootd123123    时间: 2024-8-30 18:52
感谢分享
作者: mlwithss    时间: 2024-8-30 19:35
新玩意

传统法子用惯了
作者: dna2jm    时间: 2024-8-30 22:42
谢谢分享。
作者: qq8899399    时间: 2024-8-30 22:53
wu733 发表于 2024-8-30 18:41
请教,如何在右键计算机添加“在此处打开PowerShell”?

1 楼不是有么。 你没仔细 看贴子?
作者: wu733    时间: 2024-8-30 22:59
本帖最后由 wu733 于 2024-8-30 23:03 编辑
qq8899399 发表于 2024-8-30 22:53
1 楼不是有么。 你没仔细 看贴子?

不是鼠标右键,是桌面计算机右键。
我试过了,所以才问

2024-08-30_230201.jpg (47.94 KB, 下载次数: 41)

2024-08-30_230201.jpg

2024-08-30_230148.jpg (31.69 KB, 下载次数: 41)

2024-08-30_230148.jpg

作者: qq8899399    时间: 2024-8-30 23:32
wu733 发表于 2024-8-30 22:59
不是鼠标右键,是桌面计算机右键。
我试过了,所以才问

不好意思 。我看错了。

计算机右键 没必要吧。  还要定点寻找 计算机图标。再右键。

任意位置  右键不更方便么
作者: wu733    时间: 2024-8-30 23:35
qq8899399 发表于 2024-8-30 23:32
不好意思 。我看错了。

计算机右键 没必要吧。  还要定点寻找 计算机图标。再右键。

你说的也是,也不给你添麻烦了,感谢你分享的SuperCMD 右键菜单
作者: qq8899399    时间: 2024-8-30 23:44
wu733 发表于 2024-8-30 23:35
你说的也是,也不给你添麻烦了,感谢你分享的SuperCMD 右键菜单




右键菜单 常用设置

  1. Windows Registry Editor Version 5.00

  2. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu]
  3. "Icon"="SHELL32.dll,314"
  4. "MUIVerb"="常用设置(&A)"
  5. "SubCommands"=""
  6. "Position"="top"

  7. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell]

  8. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\00 services]
  9. "MUIVerb"="服务 (&0)"
  10. "Icon"="C:\\Windows\\system32\\filemgmt.dll,0"

  11. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\00 services\command]
  12. @="mmc services.msc"

  13. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\01 regedit]
  14. "MUIVerb"="注册表 (&1)"
  15. "Icon"="regedit.exe"

  16. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\01 regedit\command]
  17. @="regedit"

  18. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\02 gpedit]
  19. "MUIVerb"="组策略 (&2)"
  20. "Icon"="C:\\Windows\\System32\\shell32.dll,90"

  21. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\02 gpedit\command]
  22. @="mmc gpedit.msc"

  23. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\03 control]
  24. "Icon"="control.exe"
  25. "MUIVerb"="控制面板 (&3)"

  26. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\03 control\command]
  27. @="control.exe"

  28. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\04 msconfig]
  29. "MUIVerb"="系统配置 (&S)"
  30. "Icon"="msconfig.exe"

  31. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\04 msconfig\command]
  32. @="msconfig"

  33. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\05 GodMode]
  34. "Icon"="SHELL32.dll,-025"
  35. "MUIVerb"="上帝模式 (&4)"

  36. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\05 GodMode\command]
  37. @="explorer shell:::{ED7BA470-8E54-465E-825C-99712043E01C}"

  38. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\06 miguiresource]
  39. "MUIVerb"="任务计划 (&5)"
  40. "Icon"="C:\\Windows\\system32\\miguiresource.dll,1"

  41. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\06 miguiresource\command]
  42. @="mmc taskschd.msc /s"

  43. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\07 event]
  44. "MUIVerb"="事件查看器 (&6)"
  45. "Icon"="C:\\Windows\\system32\\miguiresource.dll,0"

  46. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\07 event\command]
  47. @="mmc eventvwr.msc /s"

  48. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\08 CompMgmt]
  49. "MUIVerb"="计算机管理 (&G)"
  50. "Icon"="shell32.dll,88"

  51. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\08 CompMgmt\command]
  52. @="C:\\Windows\\system32\\CompMgmtLauncher.exe"

  53. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\09 FlushDns]
  54. "MUIVerb"="刷新DNS缓存 (&D)"
  55. "Icon"="shell32.dll,293"

  56. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\09 FlushDns\command]
  57. @="PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList 'ipconfig /flushdns' -Verb RunAs}""

  58. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\10 ClearEvent]
  59. "Icon"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
  60.   00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,69,00,67,00,\
  61.   75,00,69,00,72,00,65,00,73,00,6f,00,75,00,72,00,63,00,65,00,2e,00,64,00,6c,\
  62.   00,6c,00,2c,00,30,00,00,00
  63. "MUIVerb"="清理系统日志(&C)"

  64. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\10 ClearEvent\command]
  65. @="PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList 'wevtutil el | Foreach-Object {wevtutil cl "$_"}' -Verb RunAs}""

  66. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\11 Windows.aboutWindows]
  67. "CanonicalName"="{20E8B2FE-7568-46AE-A0DB-76B7F469B92D}"
  68. "Description"="@explorerframe.dll,-14403"
  69. "Icon"=hex(2):69,00,6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,\
  70.   00,6c,00,2c,00,2d,00,38,00,31,00,00,00
  71. "MUIVerb"="关于 Windows(&A)"

  72. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\11 Windows.aboutWindows\command]
  73. "DelegateExecute"="{20E8B2FE-7568-46AE-A0DB-76B7F469B92D}"

  74. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\12 ReStartExplorer]
  75. "MUIVerb"="重启 Explorer (&R)"
  76. "Icon"="C:\\Windows\\System32\\imageres.dll,229"

  77. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\12 ReStartExplorer\command]
  78. @="mshta vbscript:createobject("shell.application").shellexecute("tskill.exe","explorer","","open",0)(close)"

  79. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\BASE ShutdownOptions]
  80. #"MUIVerb"="关机选项(&Z)"
  81. #"Icon"="imageres.dll,207"
  82. #"SubCommands"=""
  83. #"Position"="bottom"

  84. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\BASE ShutdownOptions\Shell]

  85. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\BASE ShutdownOptions\Shell\Item1]
  86. #"MUIVerb"="注销(&0)"
  87. #"Icon"="shell32.dll,44"

  88. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\BASE ShutdownOptions\Shell\Item1\Command]
  89. #@="shutdown -l"

  90. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\BASE ShutdownOptions\Shell\Item5]
  91. #"MUIVerb"="关机(&1)"
  92. #"Icon"="shell32.dll,27"

  93. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\BASE ShutdownOptions\Shell\Item5\Command]
  94. #@="mshta vbscript:createobject("wscript.shell").run("shutdown.exe -s -f -t 0",0)(close)"

  95. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\BASE ShutdownOptions\Shell\Item6]
  96. #"MUIVerb"="重启(&2)"
  97. #"Icon"="shell32.dll,238"

  98. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\Shell\SetMenu\Shell\BASE ShutdownOptions\Shell\Item6\Command]
  99. #@="mshta vbscript:createobject("wscript.shell").run("shutdown.exe -r -f -t 0",0)(close)"


  100. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu]
  101. "Icon"="SHELL32.dll,314"
  102. "MUIVerb"="常用设置(&A)"
  103. "SubCommands"=""
  104. "Position"="middle"

  105. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell]

  106. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\00 services]
  107. "MUIVerb"="服务 (&0)"
  108. "Icon"="C:\\Windows\\system32\\filemgmt.dll,0"

  109. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\00 services\command]
  110. @="mmc services.msc"

  111. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\01 regedit]
  112. "MUIVerb"="注册表 (&1)"
  113. "Icon"="regedit.exe"

  114. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\01 regedit\command]
  115. @="regedit"

  116. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\02 gpedit]
  117. "MUIVerb"="组策略 (&2)"
  118. "Icon"="C:\\Windows\\System32\\shell32.dll,90"

  119. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\02 gpedit\command]
  120. @="mmc gpedit.msc"

  121. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\03 control]
  122. "Icon"="control.exe"
  123. "MUIVerb"="控制面板 (&3)"

  124. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\03 control\command]
  125. @="control.exe"

  126. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\04 msconfig]
  127. "MUIVerb"="系统配置 (&S)"
  128. "Icon"="msconfig.exe"

  129. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\04 msconfig\command]
  130. @="msconfig"

  131. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\05 GodMode]
  132. "Icon"="SHELL32.dll,-025"
  133. "MUIVerb"="上帝模式 (&4)"

  134. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\05 GodMode\command]
  135. @="explorer shell:::{ED7BA470-8E54-465E-825C-99712043E01C}"

  136. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\06 miguiresource]
  137. "MUIVerb"="任务计划 (&5)"
  138. "Icon"="C:\\Windows\\system32\\miguiresource.dll,1"

  139. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\06 miguiresource\command]
  140. @="mmc taskschd.msc /s"

  141. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\07 event]
  142. "MUIVerb"="事件查看器 (&6)"
  143. "Icon"="C:\\Windows\\system32\\miguiresource.dll,0"

  144. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\07 event\command]
  145. @="mmc eventvwr.msc /s"

  146. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\08 CompMgmt]
  147. "MUIVerb"="计算机管理 (&G)"
  148. "Icon"="shell32.dll,88"

  149. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\08 CompMgmt\command]
  150. @="C:\\Windows\\system32\\CompMgmtLauncher.exe"



  151. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\09 FlushDns]
  152. "MUIVerb"="刷新DNS缓存 (&D)"
  153. "Icon"="shell32.dll,293"

  154. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\09 FlushDns\command]
  155. @="PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList 'ipconfig /flushdns' -Verb RunAs}""


  156. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\10 ClearEvent]
  157. "Icon"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
  158.   00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,69,00,67,00,\
  159.   75,00,69,00,72,00,65,00,73,00,6f,00,75,00,72,00,63,00,65,00,2e,00,64,00,6c,\
  160.   00,6c,00,2c,00,30,00,00,00
  161. "MUIVerb"="清理系统日志(&C)"

  162. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\10 ClearEvent\command]
  163. @="PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList 'wevtutil el | Foreach-Object {wevtutil cl "$_"}' -Verb RunAs}""



  164. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\11 Windows.aboutWindows]
  165. "CanonicalName"="{20E8B2FE-7568-46AE-A0DB-76B7F469B92D}"
  166. "Description"="@explorerframe.dll,-14403"
  167. "Icon"=hex(2):69,00,6d,00,61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,\
  168.   00,6c,00,2c,00,2d,00,38,00,31,00,00,00
  169. "MUIVerb"="关于 Windows(&A)"

  170. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\11 Windows.aboutWindows\command]
  171. "DelegateExecute"="{20E8B2FE-7568-46AE-A0DB-76B7F469B92D}"


  172. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\12 ReStartExplorer]
  173. "MUIVerb"="重启 Explorer (&R)"
  174. "Icon"="C:\\Windows\\System32\\imageres.dll,229"

  175. [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\12 ReStartExplorer\command]
  176. @="mshta vbscript:createobject("shell.application").shellexecute("tskill.exe","explorer","","open",0)(close)"



  177. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\BASE ShutdownOptions]
  178. #"MUIVerb"="关机选项(&Z)"
  179. #"Icon"="imageres.dll,207"
  180. #"SubCommands"=""
  181. #"Position"="bottom"

  182. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\BASE ShutdownOptions\Shell]

  183. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\BASE ShutdownOptions\Shell\Item1]
  184. #"MUIVerb"="注销(&0)"
  185. #"Icon"="shell32.dll,44"

  186. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\BASE ShutdownOptions\Shell\Item1\Command]
  187. #@="shutdown -l"

  188. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\BASE ShutdownOptions\Shell\Item5]
  189. #"MUIVerb"="关机(&1)"
  190. #"Icon"="shell32.dll,27"

  191. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\BASE ShutdownOptions\Shell\Item5\Command]
  192. #@="mshta vbscript:createobject("wscript.shell").run("shutdown.exe -s -f -t 0",0)(close)"

  193. #[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\SetMenu\Shell\BASE ShutdownOptions\Shell\Item6]
  194. #"MUIVerb"="重启(&2)"
  195. #"Icon"="shell32.dll,238"
复制代码



右键菜单安全中心
  1. Windows Registry Editor Version 5.00


  2. #右键 Windows安全中心菜单 添加
  3. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity]
  4. "Icon"="%ProgramFiles%\\Windows Defender\\EppManifest.dll,-101"
  5. "MUIVerb"="Windows 安全中心"
  6. "Position"="Bottom"
  7. "SubCommands"=""


  8. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\001flyout]
  9. "MUIVerb"="&主页"

  10. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\001flyout\command]
  11. @="explorer windowsdefender:"


  12. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\002flyout]
  13. "MUIVerb"="&病毒和威胁防护"

  14. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\002flyout\command]
  15. @="explorer windowsdefender://threat"


  16. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\003flyout]
  17. "MUIVerb"="&账户保护"

  18. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\003flyout\command]
  19. @="explorer windowsdefender://account"


  20. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\004flyout]
  21. "MUIVerb"="&防火墙和网络保护"

  22. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\004flyout\command]
  23. @="explorer windowsdefender://network"


  24. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\005flyout]
  25. "MUIVerb"="应用和浏览器控制"

  26. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\005flyout\command]
  27. @="explorer windowsdefender://appbrowser"


  28. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\006flyout]
  29. "MUIVerb"="&设备安全性"

  30. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\006flyout\command]
  31. @="explorer windowsdefender://devicesecurity"


  32. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\007flyout]
  33. "MUIVerb"="&设备性能和运行状况"

  34. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\007flyout\command]
  35. @="explorer windowsdefender://perfhealth"


  36. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\008flyout]
  37. "MUIVerb"="&家庭选项"

  38. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\008flyout\command]
  39. @="explorer windowsdefender://family"


  40. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\009flyout]
  41. "MUIVerb"="&保护历史记录"

  42. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\009flyout\command]
  43. @="explorer windowsdefender://history"


  44. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\010flyout]
  45. "MUIVerb"="&安全提供程序"

  46. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\010flyout\command]
  47. @="explorer windowsdefender://providers"


  48. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\011flyout]
  49. "MUIVerb"="&通知"

  50. [HKEY_CLASSES_ROOT\DesktopBackground\Shell\WindowsSecurity\shell\011flyout\command]
  51. @="explorer windowsdefender://settings"
复制代码



解除文件锁定

  1. Windows Registry Editor Version 5.00

  2. #单个文件解除锁定
  3. [HKEY_CLASSES_ROOT\*\shell\解除文件锁定]
  4. "Icon"="SHELL32.dll,-025"

  5. [HKEY_CLASSES_ROOT\*\shell\解除文件锁定\command]
  6. @="powershell.exe Get-ChildItem | Unblock-File"


  7. #文件夹批量解除锁定
  8. [HKEY_CLASSES_ROOT\Directory\background\shell\批量解除此目录下文件锁定]
  9. "Icon"="SHELL32.dll,-025"

  10. [HKEY_CLASSES_ROOT\Directory\background\shell\批量解除此目录下文件锁定\command]
  11. @="powershell.exe Get-ChildItem | Unblock-File"
复制代码



作者: qq8899399    时间: 2024-8-30 23:46
wu733 发表于 2024-8-30 23:35
你说的也是,也不给你添麻烦了,感谢你分享的SuperCMD 右键菜单






右键 添加 为.exe程序 添加/删除防火墙规则
  1. Windows Registry Editor Version 5.00

  2. #右键 添加 为.exe程序 添加/删除防火墙规则
  3. [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules]
  4. "MUIVerb"="防火墙规则 添加/删除"
  5. "Icon"="FirewallControlPanel.dll,0"
  6. "SubCommands"=""

  7. [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell]

  8. [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item1]
  9. "MUIVerb"="为此程序添加禁止入站规则"
  10. "Icon"="imageres.dll,-105"

  11. [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item1\command]
  12. @="mshta vbscript:createobject("shell.application").shellexecute("netsh.exe","advfirewall firewall add rule name = ""%1"" dir = in program = ""%1"" action = block","","runas",0)(close)"

  13. [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item2]
  14. "MUIVerb"="为此程序删除禁止入站规则"
  15. "Icon"="imageres.dll,-106"

  16. [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item2\command]
  17. @="mshta vbscript:createobject("shell.application").shellexecute("netsh.exe","advfirewall firewall delete rule name = ""%1"" dir = in program = ""%1""","","runas",0)(close)"

  18. [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item3]
  19. "MUIVerb"="为此程序添加禁止出站规则"
  20. "Icon"="imageres.dll,-105"
  21. "CommandFlags"=dword:00000020

  22. [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item3\command]
  23. @="mshta vbscript:createobject("shell.application").shellexecute("netsh.exe","advfirewall firewall add rule name = ""%1"" dir = out program = ""%1"" action = block","","runas",0)(close)"

  24. [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item4]
  25. "MUIVerb"="为此程序删除禁止出站规则"
  26. "Icon"="imageres.dll,-106"

  27. [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item4\command]
  28. @="mshta vbscript:createobject("shell.application").shellexecute("netsh.exe","advfirewall firewall delete rule name = ""%1"" dir = out program = ""%1""","","runas",0)(close)"

复制代码




作者: smalldimple    时间: 2024-8-30 23:47
这可是个宝贝!
作者: qq8899399    时间: 2024-8-30 23:48
wu733 发表于 2024-8-30 22:59
不是鼠标右键,是桌面计算机右键。
我试过了,所以才问




右键 算HASH值  

  1. Windows Registry Editor Version 5.00


  2. #右键菜单 哈希值校验 添加
  3. [HKEY_CLASSES_ROOT\*\shell\hash]
  4. "MUIVerb"="Hash 值校验"
  5. "SubCommands"=""
  6. "icon"="SHELL32.dll,22"

  7. ; SHA1
  8. [HKEY_CLASSES_ROOT\*\shell\hash\shell\001menu]
  9. "MUIVerb"="SHA1"
  10. "icon"="SHELL32.dll,22"

  11. [HKEY_CLASSES_ROOT\*\shell\hash\shell\001menu\command]
  12. @="powershell -noexit get-filehash -literalpath \\"%1\\" -algorithm SHA1 | format-list"

  13. ; SHA256
  14. [HKEY_CLASSES_ROOT\*\shell\hash\shell\002menu]
  15. "MUIVerb"="SHA256"
  16. "icon"="SHELL32.dll,22"

  17. [HKEY_CLASSES_ROOT\*\shell\hash\shell\002menu\command]
  18. @="powershell -noexit get-filehash -literalpath \\"%1\\" -algorithm SHA256 | format-list"

  19. ; SHA384
  20. [HKEY_CLASSES_ROOT\*\shell\hash\shell\003menu]
  21. "MUIVerb"="SHA384"
  22. "icon"="SHELL32.dll,22"

  23. [HKEY_CLASSES_ROOT\*\shell\hash\shell\003menu\command]
  24. @="powershell -noexit get-filehash -literalpath \\"%1\\" -algorithm SHA384 | format-list"

  25. ; SHA512
  26. [HKEY_CLASSES_ROOT\*\shell\hash\shell\004menu]
  27. "MUIVerb"="SHA512"
  28. "icon"="SHELL32.dll,22"

  29. [HKEY_CLASSES_ROOT\*\shell\hash\shell\004menu\command]
  30. @="powershell -noexit get-filehash -literalpath \\"%1\\" -algorithm SHA512 | format-list"

  31. ; MACTripleDES
  32. [HKEY_CLASSES_ROOT\*\shell\hash\shell\005menu]
  33. "MUIVerb"="MACTripleDES"
  34. "icon"="SHELL32.dll,22"

  35. [HKEY_CLASSES_ROOT\*\shell\hash\shell\005menu\command]
  36. @="powershell -noexit get-filehash -literalpath \\"%1\\" -algorithm MACTripleDES | format-list"

  37. ; MD5
  38. [HKEY_CLASSES_ROOT\*\shell\hash\shell\006menu]
  39. "MUIVerb"="MD5"
  40. "icon"="SHELL32.dll,22"

  41. [HKEY_CLASSES_ROOT\*\shell\hash\shell\006menu\command]
  42. @="powershell -noexit get-filehash -literalpath \\"%1\\" -algorithm MD5 | format-list"

  43. ; RIPEMD160
  44. [HKEY_CLASSES_ROOT\*\shell\hash\shell\007menu]
  45. "MUIVerb"="RIPEMD160"
  46. "icon"="SHELL32.dll,22"

  47. [HKEY_CLASSES_ROOT\*\shell\hash\shell\007menu\command]
  48. @="powershell -noexit get-filehash -literalpath \\"%1\\" -algorithm RIPEMD160 | format-list"

  49. ; SHA1 (保存txt)
  50. [HKEY_CLASSES_ROOT\*\shell\hash\shell\011menuouttxt]
  51. "CommandFlags"=dword:00000020
  52. "MUIVerb"="SHA1 (保存txt)"
  53. "icon"="SHELL32.dll,22"

  54. [HKEY_CLASSES_ROOT\*\shell\hash\shell\011menuouttxt\command]
  55. @="powershell -noexit -command "$filePath = '%1'; $fileName = [System.IO.Path]::GetFileNameWithoutExtension($filePath); $fullFileName = [System.IO.Path]::GetFileName($filePath); $currentTime = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'; Get-FileHash -LiteralPath $filePath -Algorithm SHA1 | Select-Object @{Name='Algorithm';Expression={$_.Algorithm}}, @{Name='Hash';Expression={$_.Hash}}, @{Name='FullFileName';Expression={$fullFileName}}, @{Name='CurrentTime';Expression={$currentTime}} -ExcludeProperty Path | Format-List | Out-File -FilePath (Join-Path (Split-Path -Parent $filePath) ('{0}_hash.txt' -f $fileName)) -Append"; exit"

  56. ; SHA256 (保存txt)
  57. [HKEY_CLASSES_ROOT\*\shell\hash\shell\012menuouttxt]
  58. "MUIVerb"="SHA256 (保存txt)"
  59. "icon"="SHELL32.dll,22"

  60. [HKEY_CLASSES_ROOT\*\shell\hash\shell\012menuouttxt\command]
  61. @="powershell -noexit -command "$filePath = '%1'; $fileName = [System.IO.Path]::GetFileNameWithoutExtension($filePath); $fullFileName = [System.IO.Path]::GetFileName($filePath); $currentTime = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'; Get-FileHash -LiteralPath $filePath -Algorithm SHA256 | Select-Object @{Name='Algorithm';Expression={$_.Algorithm}}, @{Name='Hash';Expression={$_.Hash}}, @{Name='FullFileName';Expression={$fullFileName}}, @{Name='CurrentTime';Expression={$currentTime}} -ExcludeProperty Path | Format-List | Out-File -FilePath (Join-Path (Split-Path -Parent $filePath) ('{0}_hash.txt' -f $fileName)) -Append"; exit"

  62. ; SHA384 (保存txt)
  63. [HKEY_CLASSES_ROOT\*\shell\hash\shell\013menuouttxt]
  64. "MUIVerb"="SHA384 (保存txt)"
  65. "icon"="SHELL32.dll,22"

  66. [HKEY_CLASSES_ROOT\*\shell\hash\shell\013menuouttxt\command]
  67. @="powershell -noexit -command "$filePath = '%1'; $fileName = [System.IO.Path]::GetFileNameWithoutExtension($filePath); $fullFileName = [System.IO.Path]::GetFileName($filePath); $currentTime = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'; Get-FileHash -LiteralPath $filePath -Algorithm SHA384 | Select-Object @{Name='Algorithm';Expression={$_.Algorithm}}, @{Name='Hash';Expression={$_.Hash}}, @{Name='FullFileName';Expression={$fullFileName}}, @{Name='CurrentTime';Expression={$currentTime}} -ExcludeProperty Path | Format-List | Out-File -FilePath (Join-Path (Split-Path -Parent $filePath) ('{0}_hash.txt' -f $fileName)) -Append"; exit"

  68. ; SHA512 (保存txt)
  69. [HKEY_CLASSES_ROOT\*\shell\hash\shell\014menuouttxt]
  70. "MUIVerb"="SHA512 (保存txt)"
  71. "icon"="SHELL32.dll,22"

  72. [HKEY_CLASSES_ROOT\*\shell\hash\shell\014menuouttxt\command]
  73. @="powershell -noexit -command "$filePath = '%1'; $fileName = [System.IO.Path]::GetFileNameWithoutExtension($filePath); $fullFileName = [System.IO.Path]::GetFileName($filePath); $currentTime = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'; Get-FileHash -LiteralPath $filePath -Algorithm SHA512 | Select-Object @{Name='Algorithm';Expression={$_.Algorithm}}, @{Name='Hash';Expression={$_.Hash}}, @{Name='FullFileName';Expression={$fullFileName}}, @{Name='CurrentTime';Expression={$currentTime}} -ExcludeProperty Path | Format-List | Out-File -FilePath (Join-Path (Split-Path -Parent $filePath) ('{0}_hash.txt' -f $fileName)) -Append"; exit"

  74. ; MACTripleDES (保存txt)
  75. [HKEY_CLASSES_ROOT\*\shell\hash\shell\015menuouttxt]
  76. "MUIVerb"="MACTripleDES (保存txt)"
  77. "icon"="SHELL32.dll,22"

  78. [HKEY_CLASSES_ROOT\*\shell\hash\shell\015menuouttxt\command]
  79. @="powershell -noexit -command "$filePath = '%1'; $fileName = [System.IO.Path]::GetFileNameWithoutExtension($filePath); $fullFileName = [System.IO.Path]::GetFileName($filePath); $currentTime = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'; Get-FileHash -LiteralPath $filePath -Algorithm MACTripleDES | Select-Object @{Name='Algorithm';Expression={$_.Algorithm}}, @{Name='Hash';Expression={$_.Hash}}, @{Name='FullFileName';Expression={$fullFileName}}, @{Name='CurrentTime';Expression={$currentTime}} -ExcludeProperty Path | Format-List | Out-File -FilePath (Join-Path (Split-Path -Parent $filePath) ('{0}_hash.txt' -f $fileName)) -Append"; exit"

  80. ; MD5 (保存txt)
  81. [HKEY_CLASSES_ROOT\*\shell\hash\shell\016menuouttxt]
  82. "MUIVerb"="MD5 (保存txt)"
  83. "icon"="SHELL32.dll,22"

  84. [HKEY_CLASSES_ROOT\*\shell\hash\shell\016menuouttxt\command]
  85. @="powershell -noexit -command "$filePath = '%1'; $fileName = [System.IO.Path]::GetFileNameWithoutExtension($filePath); $fullFileName = [System.IO.Path]::GetFileName($filePath); $currentTime = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'; Get-FileHash -LiteralPath $filePath -Algorithm MD5 | Select-Object @{Name='Algorithm';Expression={$_.Algorithm}}, @{Name='Hash';Expression={$_.Hash}}, @{Name='FullFileName';Expression={$fullFileName}}, @{Name='CurrentTime';Expression={$currentTime}} -ExcludeProperty Path | Format-List | Out-File -FilePath (Join-Path (Split-Path -Parent $filePath) ('{0}_hash.txt' -f $fileName)) -Append"; exit"

  86. ; RIPEMD160 (保存txt)
  87. [HKEY_CLASSES_ROOT\*\shell\hash\shell\017menuouttxt]
  88. "MUIVerb"="RIPEMD160 (保存txt)"
  89. "icon"="SHELL32.dll,22"

  90. [HKEY_CLASSES_ROOT\*\shell\hash\shell\017menuouttxt\command]
  91. @="powershell -noexit -command "$filePath = '%1'; $fileName = [System.IO.Path]::GetFileNameWithoutExtension($filePath); $fullFileName = [System.IO.Path]::GetFileName($filePath); $currentTime = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'; Get-FileHash -LiteralPath $filePath -Algorithm RIPEMD160 | Select-Object @{Name='Algorithm';Expression={$_.Algorithm}}, @{Name='Hash';Expression={$_.Hash}}, @{Name='FullFileName';Expression={$fullFileName}}, @{Name='CurrentTime';Expression={$currentTime}} -ExcludeProperty Path | Format-List | Out-File -FilePath (Join-Path (Split-Path -Parent $filePath) ('{0}_hash.txt' -f $fileName)) -Append"; exit"

  92. ; Allget-filehash -literalpath '%1' -algorithm RIPEMD160 | format-list
  93. [HKEY_CLASSES_ROOT\*\shell\hash\shell\018menu]
  94. "CommandFlags"=dword:00000020
  95. "MUIVerb"="Show all"
  96. "icon"="SHELL32.dll,22"

  97. [HKEY_CLASSES_ROOT\*\shell\hash\shell\018menu\command]
  98. @="powershell -noexit get-filehash -literalpath \\"%1\\" -algorithm SHA1 | format-list;get-filehash -literalpath \\"%1\\" -algorithm SHA256 | format-list;get-filehash -literalpath \\"%1\\" -algorithm SHA384 | format-list;get-filehash -literalpath \\"%1\\" -algorithm SHA512 | format-list;get-filehash -literalpath \\"%1\\" -algorithm MACTripleDES | format-list;get-filehash -literalpath \\"%1\\" -algorithm MD5 | format-list;get-filehash -literalpath \\"%1\\" -algorithm RIPEMD160 | format-list"




  99. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory]
  100. "icon"="SHELL32.dll,22"
  101. "SubCommands"=""
  102. "MUIVerb"="Hash 校验目录下所有文件"

  103. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell]

  104. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell\001]
  105. "MUIVerb"="SHA1 (保存txt)"
  106. "icon"="SHELL32.dll,22"

  107. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell\001\command]
  108. @="powershell.exe -NoExit -Command "$folderPath = '%1'; Get-ChildItem -Path $folderPath -Recurse -File | ForEach-Object { $filePath = $_.FullName; $fileNameWithoutExt = [System.IO.Path]::GetFileNameWithoutExtension($filePath); $fileNameWithExt = [System.IO.Path]::GetFileName($filePath); $currentTime = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'; $fileHash = Get-FileHash -LiteralPath $filePath -Algorithm SHA1; $fileHash | Add-Member -NotePropertyName 'OriginalFileName' -NotePropertyValue $fileNameWithExt -PassThru | Add-Member -NotePropertyName 'CurrentTime' -NotePropertyValue $currentTime -PassThru | Select-Object Algorithm, Hash, OriginalFileName, CurrentTime -ExcludeProperty Path | Format-List | Out-File -FilePath (Join-Path (Split-Path -Parent $filePath) ('{0}_hash.txt' -f $fileNameWithoutExt)) -Append }; Write-Host '文件夹内所有文件 SHA1 验证完毕.'""

  109. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell\002]
  110. "MUIVerb"="SHA256 (保存txt)"
  111. "icon"="SHELL32.dll,22"

  112. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell\002\command]
  113. @="powershell.exe -NoExit -Command "$folderPath = '%1'; Get-ChildItem -Path $folderPath -Recurse -File | ForEach-Object { $filePath = $_.FullName; $fileNameWithoutExt = [System.IO.Path]::GetFileNameWithoutExtension($filePath); $fileNameWithExt = [System.IO.Path]::GetFileName($filePath); $currentTime = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'; $fileHash = Get-FileHash -LiteralPath $filePath -Algorithm SHA256; $fileHash | Add-Member -NotePropertyName 'OriginalFileName' -NotePropertyValue $fileNameWithExt -PassThru | Add-Member -NotePropertyName 'CurrentTime' -NotePropertyValue $currentTime -PassThru | Select-Object Algorithm, Hash, OriginalFileName, CurrentTime -ExcludeProperty Path | Format-List | Out-File -FilePath (Join-Path (Split-Path -Parent $filePath) ('{0}_hash.txt' -f $fileNameWithoutExt)) -Append }; Write-Host '文件夹内所有文件 SHA256 验证完毕.'""

  114. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell\003]
  115. "MUIVerb"="SHA384 (保存txt)"
  116. "icon"="SHELL32.dll,22"

  117. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell\003\command]
  118. @="powershell.exe -NoExit -Command "$folderPath = '%1'; Get-ChildItem -Path $folderPath -Recurse -File | ForEach-Object { $filePath = $_.FullName; $fileNameWithoutExt = [System.IO.Path]::GetFileNameWithoutExtension($filePath); $fileNameWithExt = [System.IO.Path]::GetFileName($filePath); $currentTime = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'; $fileHash = Get-FileHash -LiteralPath $filePath -Algorithm SHA384; $fileHash | Add-Member -NotePropertyName 'OriginalFileName' -NotePropertyValue $fileNameWithExt -PassThru | Add-Member -NotePropertyName 'CurrentTime' -NotePropertyValue $currentTime -PassThru | Select-Object Algorithm, Hash, OriginalFileName, CurrentTime -ExcludeProperty Path | Format-List | Out-File -FilePath (Join-Path (Split-Path -Parent $filePath) ('{0}_hash.txt' -f $fileNameWithoutExt)) -Append }; Write-Host '文件夹内所有文件 SHA384 验证完毕.'""


  119. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell\004]
  120. "MUIVerb"="SHA512 (保存txt)"
  121. "icon"="SHELL32.dll,22"

  122. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell\004\command]
  123. @="powershell.exe -NoExit -Command "$folderPath = '%1'; Get-ChildItem -Path $folderPath -Recurse -File | ForEach-Object { $filePath = $_.FullName; $fileNameWithoutExt = [System.IO.Path]::GetFileNameWithoutExtension($filePath); $fileNameWithExt = [System.IO.Path]::GetFileName($filePath); $currentTime = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'; $fileHash = Get-FileHash -LiteralPath $filePath -Algorithm SHA512; $fileHash | Add-Member -NotePropertyName 'OriginalFileName' -NotePropertyValue $fileNameWithExt -PassThru | Add-Member -NotePropertyName 'CurrentTime' -NotePropertyValue $currentTime -PassThru | Select-Object Algorithm, Hash, OriginalFileName, CurrentTime -ExcludeProperty Path | Format-List | Out-File -FilePath (Join-Path (Split-Path -Parent $filePath) ('{0}_hash.txt' -f $fileNameWithoutExt)) -Append }; Write-Host '文件夹内所有文件 SHA512 验证完毕.'""


  124. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell\005]
  125. "MUIVerb"="MACTripleDES (保存txt)"
  126. "icon"="SHELL32.dll,22"

  127. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell\005\command]
  128. @="powershell.exe -NoExit -Command "$folderPath = '%1'; Get-ChildItem -Path $folderPath -Recurse -File | ForEach-Object { $filePath = $_.FullName; $fileNameWithoutExt = [System.IO.Path]::GetFileNameWithoutExtension($filePath); $fileNameWithExt = [System.IO.Path]::GetFileName($filePath); $currentTime = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'; $fileHash = Get-FileHash -LiteralPath $filePath -Algorithm MACTripleDES; $fileHash | Add-Member -NotePropertyName 'OriginalFileName' -NotePropertyValue $fileNameWithExt -PassThru | Add-Member -NotePropertyName 'CurrentTime' -NotePropertyValue $currentTime -PassThru | Select-Object Algorithm, Hash, OriginalFileName, CurrentTime -ExcludeProperty Path | Format-List | Out-File -FilePath (Join-Path (Split-Path -Parent $filePath) ('{0}_hash.txt' -f $fileNameWithoutExt)) -Append }; Write-Host '文件夹内所有文件 MACTripleDES 验证完毕.'""


  129. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell\006]
  130. "MUIVerb"="MD5 (保存txt)"
  131. "icon"="SHELL32.dll,22"

  132. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell\006\command]
  133. @="powershell.exe -NoExit -Command "$folderPath = '%1'; Get-ChildItem -Path $folderPath -Recurse -File | ForEach-Object { $filePath = $_.FullName; $fileNameWithoutExt = [System.IO.Path]::GetFileNameWithoutExtension($filePath); $fileNameWithExt = [System.IO.Path]::GetFileName($filePath); $currentTime = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'; $fileHash = Get-FileHash -LiteralPath $filePath -Algorithm MD5; $fileHash | Add-Member -NotePropertyName 'OriginalFileName' -NotePropertyValue $fileNameWithExt -PassThru | Add-Member -NotePropertyName 'CurrentTime' -NotePropertyValue $currentTime -PassThru | Select-Object Algorithm, Hash, OriginalFileName, CurrentTime -ExcludeProperty Path | Format-List | Out-File -FilePath (Join-Path (Split-Path -Parent $filePath) ('{0}_hash.txt' -f $fileNameWithoutExt)) -Append }; Write-Host '文件夹内所有文件 MD5 验证完毕.'""


  134. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell\007]
  135. "MUIVerb"="RIPEMD160 (保存txt)"
  136. "icon"="SHELL32.dll,22"

  137. [HKEY_CLASSES_ROOT\Directory\shell\hashDirectory\shell\007\command]
  138. @="powershell.exe -NoExit -Command "$folderPath = '%1'; Get-ChildItem -Path $folderPath -Recurse -File | ForEach-Object { $filePath = $_.FullName; $fileNameWithoutExt = [System.IO.Path]::GetFileNameWithoutExtension($filePath); $fileNameWithExt = [System.IO.Path]::GetFileName($filePath); $currentTime = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'; $fileHash = Get-FileHash -LiteralPath $filePath -Algorithm RIPEMD160; $fileHash | Add-Member -NotePropertyName 'OriginalFileName' -NotePropertyValue $fileNameWithExt -PassThru | Add-Member -NotePropertyName 'CurrentTime' -NotePropertyValue $currentTime -PassThru | Select-Object Algorithm, Hash, OriginalFileName, CurrentTime -ExcludeProperty Path | Format-List | Out-File -FilePath (Join-Path (Split-Path -Parent $filePath) ('{0}_hash.txt' -f $fileNameWithoutExt)) -Append }; Write-Host '文件夹内所有文件 RIPEMD160 验证完毕.'""
复制代码



作者: wu733    时间: 2024-8-30 23:52
qq8899399 发表于 2024-8-30 23:48
右键 算HASH值

我眼睛花了
作者: qq8899399    时间: 2024-8-30 23:57
wu733 发表于 2024-8-30 23:52
我眼睛花了

希望对你有帮助。 哈哈。
作者: fxssj    时间: 2024-8-31 07:53
谢谢分享!
作者: yzqmxh    时间: 2024-8-31 15:49
谢谢分享
作者: wu733    时间: 2024-9-3 15:30
右键菜单经我消化吸收,在Win7上也弄了一个类似的,增加了“添加或删除程序”、“设备管理器”,以及针对Win7的“重启资源管理器”

2024-09-03_151957.jpg (54.75 KB, 下载次数: 40)

2024-09-03_151957.jpg

作者: dianji2004    时间: 2024-9-3 16:05

谢谢分享!
作者: nbcsi    时间: 2024-9-3 17:08
谢谢分享
作者: djkzj    时间: 2024-9-7 13:07
不错,挺喜欢的
作者: 2011matrixvexx    时间: 2024-9-16 19:48
感谢楼主分享
作者: cnpsx    时间: 2024-10-1 10:06
非常好用,谢谢分享
作者: JyDisk    时间: 2024-10-1 10:58
qq8899399 发表于 2024-8-30 23:48
右键 算HASH值

win7 x64用不了?




欢迎光临 无忧启动论坛 (http://wuyou.net./) Powered by Discuz! X3.3