无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
12
返回列表 发新帖
楼主: qq8899399
打印 上一主题 下一主题

[分享] 鼠标右键 使用SYSTEM权限打开 CMD窗口 绿色版

    [复制链接]
31#
发表于 2024-8-30 17:51:35 | 只看该作者
回复

使用道具 举报

32#
发表于 2024-8-30 18:33:48 | 只看该作者
不错,不错
回复

使用道具 举报

33#
发表于 2024-8-30 18:41:13 | 只看该作者
请教,如何在右键计算机添加“在此处打开PowerShell”?

点评

1 楼不是有么。 你没仔细 看贴子?  详情 回复 发表于 2024-8-30 22:53
回复

使用道具 举报

34#
发表于 2024-8-30 18:43:07 | 只看该作者
谢谢分享
回复

使用道具 举报

35#
发表于 2024-8-30 18:43:39 | 只看该作者
谢谢分享
回复

使用道具 举报

36#
发表于 2024-8-30 18:43:54 | 只看该作者
谢谢分享
回复

使用道具 举报

37#
发表于 2024-8-30 18:52:04 | 只看该作者
感谢分享
回复

使用道具 举报

38#
发表于 2024-8-30 19:35:22 | 只看该作者
新玩意

传统法子用惯了
回复

使用道具 举报

39#
发表于 2024-8-30 22:42:37 | 只看该作者
谢谢分享。
回复

使用道具 举报

40#
 楼主| 发表于 2024-8-30 22:53:57 | 只看该作者
wu733 发表于 2024-8-30 18:41
请教,如何在右键计算机添加“在此处打开PowerShell”?

1 楼不是有么。 你没仔细 看贴子?

点评

不是鼠标右键,是桌面计算机右键。 我试过了,所以才问  详情 回复 发表于 2024-8-30 22:59
回复

使用道具 举报

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

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

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

2024-08-30_230201.jpg

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

2024-08-30_230148.jpg

点评

[attachimg]546365[/attachimg] 右键 算HASH值  详情 回复 发表于 2024-8-30 23:48
不好意思 。我看错了。 计算机右键 没必要吧。 还要定点寻找 计算机图标。再右键。 任意位置 右键不更方便么  详情 回复 发表于 2024-8-30 23:32
回复

使用道具 举报

42#
 楼主| 发表于 2024-8-30 23:32:31 | 只看该作者
wu733 发表于 2024-8-30 22:59
不是鼠标右键,是桌面计算机右键。
我试过了,所以才问

不好意思 。我看错了。

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

任意位置  右键不更方便么

点评

你说的也是,也不给你添麻烦了,感谢你分享的SuperCMD 右键菜单  详情 回复 发表于 2024-8-30 23:35
回复

使用道具 举报

43#
发表于 2024-8-30 23:35:32 | 只看该作者
qq8899399 发表于 2024-8-30 23:32
不好意思 。我看错了。

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

你说的也是,也不给你添麻烦了,感谢你分享的SuperCMD 右键菜单

点评

[attachimg]546364[/attachimg] 右键 添加 为.exe程序 添加/删除防火墙规则[/backcolor]  详情 回复 发表于 2024-8-30 23:46
[attachimg]546363[/attachimg] 右键菜单 常用设置 右键菜单安全中心 解除文件锁定  详情 回复 发表于 2024-8-30 23:44
回复

使用道具 举报

44#
 楼主| 发表于 2024-8-30 23:44:35 | 只看该作者
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"
复制代码


回复

使用道具 举报

45#
 楼主| 发表于 2024-8-30 23:46:56 | 只看该作者
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)"

复制代码



回复

使用道具 举报

46#
发表于 2024-8-30 23:47:06 | 只看该作者
这可是个宝贝!
回复

使用道具 举报

47#
 楼主| 发表于 2024-8-30 23:48:40 | 只看该作者
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 验证完毕.'""
复制代码


点评

我眼睛花了  详情 回复 发表于 2024-8-30 23:52
回复

使用道具 举报

48#
发表于 2024-8-30 23:52:20 | 只看该作者

我眼睛花了

点评

希望对你有帮助。 哈哈。  详情 回复 发表于 2024-8-30 23:57
回复

使用道具 举报

49#
 楼主| 发表于 2024-8-30 23:57:45 | 只看该作者

希望对你有帮助。 哈哈。
回复

使用道具 举报

50#
发表于 2024-8-31 07:53:03 | 只看该作者
谢谢分享!
回复

使用道具 举报

51#
发表于 2024-8-31 15:49:07 | 只看该作者
谢谢分享
回复

使用道具 举报

52#
发表于 2024-9-3 15:30:09 | 只看该作者
右键菜单经我消化吸收,在Win7上也弄了一个类似的,增加了“添加或删除程序”、“设备管理器”,以及针对Win7的“重启资源管理器”

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

2024-09-03_151957.jpg
回复

使用道具 举报

53#
发表于 2024-9-3 16:05:07 | 只看该作者

谢谢分享!
回复

使用道具 举报

54#
发表于 2024-9-3 17:08:49 | 只看该作者
谢谢分享
回复

使用道具 举报

55#
发表于 2024-9-7 13:07:43 | 只看该作者
不错,挺喜欢的
回复

使用道具 举报

56#
发表于 2024-9-16 19:48:45 | 只看该作者
感谢楼主分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-9-28 09:29

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表