在设置了本地磁盘的显示为平铺之后还是无法显示磁盘的容量,并且右击磁盘的属性显示“此项目的属性未知”

    image.png
    image.png

    这是因为注册表的损坏造成的,注册表HKEY_CLASSES_ROOT\Drive分支因为卸载某软件造成了相关的影响,导致功能无法正常运行
    解决方法:使用注册表相关的修复工具进行修复,工具的链接及下

    1. https://pan.baidu.com/s/1mGtjD0WrOvU70IHIWOxhjw?pwd=ytj1

    或者自己建立一个后缀为.reg的文件,进行注册表的恢复,源码及下:

    1. Windows Registry Editor Version 5.00
    2. [HKEY_CLASSES_ROOT\Drive]
    3. @="Drive"
    4. "ContentViewModeForBrowse"="prop:~System.ItemNameDisplay;~System.PercentFull;~System.LayoutPattern.PlaceHolder;~System.LayoutPattern.PlaceHolder;~System.Volume.FileSystem;~System.Computer.DecoratedFreeSpace"
    5. "ContentViewModeLayoutPatternForBrowse"="delta"
    6. "EditFlags"=hex:d2,01,00,00
    7. "InfoTip"="prop:System.FreeSpace;System.Capacity"
    8. "PreviewDetails"="prop:*System.PercentFull;System.FreeSpace;System.Capacity;System.Volume.FileSystem;*System.Volume.BitLockerProtection"
    9. "PreviewTitle"="prop:System.ItemNameDisplay;System.ItemTypeText"
    10. "TileInfo"="prop:*System.PercentFull;System.Computer.DecoratedFreeSpace;System.Volume.FileSystem"
    11. [HKEY_CLASSES_ROOT\Drive\Commands]
    12. [HKEY_CLASSES_ROOT\Drive\Commands\Shell]
    13. [HKEY_CLASSES_ROOT\Drive\Commands\Shell\Windows.EnhancedStorage.Lock]
    14. @="Enhanced Storage Lock Command"
    15. "CommandStateSync"=""
    16. "ExplorerCommandHandler"="{CC55EE92-FE67-43C9-95E7-E646918A4A04}"
    17. [HKEY_CLASSES_ROOT\Drive\Commands\Shell\Windows.EnhancedStorage.Unlock]
    18. @="Enhanced Storage Unlock Command"
    19. "CommandStateSync"=""
    20. "ExplorerCommandHandler"="{CC55EE92-FE67-43C9-95E7-E646918A4A04}"
    21. [HKEY_CLASSES_ROOT\Drive\DefaultIcon]
    22. @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    23. 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\
    24. 65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,38,00,00,00
    25. [HKEY_CLASSES_ROOT\Drive\shell]
    26. @="none"
    27. [HKEY_CLASSES_ROOT\Drive\shell\change-passphrase]
    28. @=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
    29. 00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,66,00,\
    30. 76,00,65,00,77,00,69,00,7a,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,39,00,37,\
    31. 00,31,00,00,00
    32. "AppliesTo"="(System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#On OR System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#Encrypting OR System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#Suspended) AND System.Volume.BitLockerCanChangePassphraseByProxy:=System.StructuredQueryType.Boolean#True"
    33. "MultiSelectModel"="Single"
    34. [HKEY_CLASSES_ROOT\Drive\shell\change-passphrase\command]
    35. @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    36. 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,62,00,64,00,\
    37. 65,00,63,00,68,00,61,00,6e,00,67,00,65,00,70,00,69,00,6e,00,2e,00,65,00,78,\
    38. 00,65,00,20,00,2d,00,70,00,77,00,20,00,25,00,31,00,00,00
    39. [HKEY_CLASSES_ROOT\Drive\shell\change-pin]
    40. @=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
    41. 00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,66,00,\
    42. 76,00,65,00,77,00,69,00,7a,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,39,00,37,\
    43. 00,30,00,00,00
    44. "AppliesTo"="(System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#On OR System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#Encrypting OR System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#Suspended) AND System.Volume.BitLockerCanChangePin:=System.StructuredQueryType.Boolean#True"
    45. "MultiSelectModel"="Single"
    46. [HKEY_CLASSES_ROOT\Drive\shell\change-pin\command]
    47. @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    48. 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,62,00,64,00,\
    49. 65,00,63,00,68,00,61,00,6e,00,67,00,65,00,70,00,69,00,6e,00,2e,00,65,00,78,\
    50. 00,65,00,00,00
    51. [HKEY_CLASSES_ROOT\Drive\shell\cmd]
    52. @="@shell32.dll,-8506"
    53. "Extended"=""
    54. "HideBasedOnVelocityId"=dword:00639bc8
    55. "NoWorkingDirectory"=""
    56. [HKEY_CLASSES_ROOT\Drive\shell\cmd\command]
    57. @="cmd.exe /s /k pushd \"%V\""
    58. [HKEY_CLASSES_ROOT\Drive\shell\encrypt-bde]
    59. @=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
    60. 00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,66,00,\
    61. 76,00,65,00,77,00,69,00,7a,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,39,00,32,\
    62. 00,30,00,00,00
    63. "AppliesTo"="(System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#Off OR System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#OnPreProvisioned) AND System.Volume.BitLockerRequiresAdmin:=System.StructuredQueryType.Boolean#False"
    64. "MultiSelectModel"="Single"
    65. [HKEY_CLASSES_ROOT\Drive\shell\encrypt-bde\command]
    66. @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    67. 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,42,00,69,00,\
    68. 74,00,4c,00,6f,00,63,00,6b,00,65,00,72,00,57,00,69,00,7a,00,61,00,72,00,64,\
    69. 00,2e,00,65,00,78,00,65,00,20,00,25,00,31,00,20,00,54,00,00,00
    70. [HKEY_CLASSES_ROOT\Drive\shell\encrypt-bde-elev]
    71. @=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
    72. 00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,66,00,\
    73. 76,00,65,00,77,00,69,00,7a,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,39,00,32,\
    74. 00,30,00,00,00
    75. "AppliesTo"="(System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#Off OR System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#OnPreProvisioned) AND System.Volume.BitLockerRequiresAdmin:=System.StructuredQueryType.Boolean#True"
    76. "HasLUAShield"=""
    77. "MultiSelectModel"="Single"
    78. [HKEY_CLASSES_ROOT\Drive\shell\encrypt-bde-elev\command]
    79. @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    80. 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,42,00,69,00,\
    81. 74,00,4c,00,6f,00,63,00,6b,00,65,00,72,00,57,00,69,00,7a,00,61,00,72,00,64,\
    82. 00,45,00,6c,00,65,00,76,00,2e,00,65,00,78,00,65,00,20,00,25,00,31,00,20,00,\
    83. 54,00,00,00
    84. [HKEY_CLASSES_ROOT\Drive\shell\find]
    85. "LegacyDisable"=""
    86. "SuppressionPolicy"=dword:00000080
    87. [HKEY_CLASSES_ROOT\Drive\shell\find\command]
    88. @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    89. 00,5c,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,\
    90. 65,00,00,00
    91. "DelegateExecute"="{a015411a-f97d-4ef3-8425-8a38d022aebc}"
    92. [HKEY_CLASSES_ROOT\Drive\shell\manage-bde]
    93. @=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
    94. 00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,66,00,\
    95. 76,00,65,00,77,00,69,00,7a,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,39,00,34,\
    96. 00,39,00,00,00
    97. "AppliesTo"="System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#On OR System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#Encrypting OR System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#Suspended"
    98. "MultiSelectModel"="Single"
    99. [HKEY_CLASSES_ROOT\Drive\shell\manage-bde\command]
    100. @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    101. 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,6f,00,\
    102. 6e,00,74,00,72,00,6f,00,6c,00,2e,00,65,00,78,00,65,00,20,00,2f,00,6e,00,61,\
    103. 00,6d,00,65,00,20,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,\
    104. 2e,00,42,00,69,00,74,00,4c,00,6f,00,63,00,6b,00,65,00,72,00,44,00,72,00,69,\
    105. 00,76,00,65,00,45,00,6e,00,63,00,72,00,79,00,70,00,74,00,69,00,6f,00,6e,00,\
    106. 20,00,2f,00,70,00,61,00,67,00,65,00,20,00,3f,00,49,00,6e,00,69,00,74,00,69,\
    107. 00,61,00,6c,00,56,00,6f,00,6c,00,75,00,6d,00,65,00,3d,00,3d,00,25,00,31,00,\
    108. 00,00
    109. [HKEY_CLASSES_ROOT\Drive\shell\Powershell]
    110. @="@shell32.dll,-8508"
    111. "Extended"=""
    112. "NoWorkingDirectory"=""
    113. "ShowBasedOnVelocityId"=dword:00639bc8
    114. [HKEY_CLASSES_ROOT\Drive\shell\Powershell\command]
    115. @="powershell.exe -noexit -command Set-Location -literalPath '%V'"
    116. [HKEY_CLASSES_ROOT\Drive\shell\resume-bde]
    117. @=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
    118. 00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,66,00,\
    119. 76,00,65,00,77,00,69,00,7a,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,39,00,32,\
    120. 00,31,00,00,00
    121. "AppliesTo"="System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#Suspended AND System.Volume.BitLockerRequiresAdmin:=System.StructuredQueryType.Boolean#False"
    122. "MultiSelectModel"="Single"
    123. [HKEY_CLASSES_ROOT\Drive\shell\resume-bde\command]
    124. @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    125. 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,42,00,69,00,\
    126. 74,00,4c,00,6f,00,63,00,6b,00,65,00,72,00,57,00,69,00,7a,00,61,00,72,00,64,\
    127. 00,2e,00,65,00,78,00,65,00,20,00,25,00,31,00,20,00,56,00,00,00
    128. [HKEY_CLASSES_ROOT\Drive\shell\resume-bde-elev]
    129. @=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
    130. 00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,66,00,\
    131. 76,00,65,00,77,00,69,00,7a,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,39,00,32,\
    132. 00,31,00,00,00
    133. "AppliesTo"="System.Volume.BitLockerProtection:=System.Volume.BitLockerProtection#Suspended AND System.Volume.BitLockerRequiresAdmin:=System.StructuredQueryType.Boolean#True"
    134. "HasLUAShield"=""
    135. "MultiSelectModel"="Single"
    136. [HKEY_CLASSES_ROOT\Drive\shell\resume-bde-elev\command]
    137. @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    138. 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,42,00,69,00,\
    139. 74,00,4c,00,6f,00,63,00,6b,00,65,00,72,00,57,00,69,00,7a,00,61,00,72,00,64,\
    140. 00,45,00,6c,00,65,00,76,00,2e,00,65,00,78,00,65,00,20,00,25,00,31,00,20,00,\
    141. 56,00,00,00
    142. [HKEY_CLASSES_ROOT\Drive\shell\runas]
    143. @="获取超级管理员权限"
    144. "Icon"="C:\\Windows\\System32\\imageres.dll,-78"
    145. "NoWorkingDirectory"=""
    146. [HKEY_CLASSES_ROOT\Drive\shell\runas\command]
    147. @="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
    148. "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
    149. [HKEY_CLASSES_ROOT\Drive\shell\unlock-bde]
    150. @=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
    151. 00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,62,00,\
    152. 64,00,65,00,75,00,6e,00,6c,00,6f,00,63,00,6b,00,2e,00,65,00,78,00,65,00,2c,\
    153. 00,2d,00,31,00,30,00,30,00,00,00
    154. "AppliesTo"="System.Volume.BitLockerProtection:=6"
    155. "DefaultAppliesTo"=""
    156. "MultiSelectModel"="Single"
    157. [HKEY_CLASSES_ROOT\Drive\shell\unlock-bde\command]
    158. @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    159. 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,62,00,64,00,\
    160. 65,00,75,00,6e,00,6c,00,6f,00,63,00,6b,00,2e,00,65,00,78,00,65,00,20,00,25,\
    161. 00,31,00,00,00
    162. [HKEY_CLASSES_ROOT\Drive\shellex]
    163. [HKEY_CLASSES_ROOT\Drive\shellex\-ContextMenuHandlers]
    164. [HKEY_CLASSES_ROOT\Drive\shellex\-ContextMenuHandlers\EPP]
    165. @="{09A47860-11B0-4DA5-AFA5-26D86198A780}"
    166. [HKEY_CLASSES_ROOT\Drive\shellex\-ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}]
    167. [HKEY_CLASSES_ROOT\Drive\shellex\-ContextMenuHandlers\{D6791A63-E7E2-4fee-BF52-5DED8E86E9B8}]
    168. "{D6791A63-E7E2-4fee-BF52-5DED8E86E9B8}"="Portable Devices Menu"
    169. [HKEY_CLASSES_ROOT\Drive\shellex\-ContextMenuHandlers\{fbeb8a05-beee-4442-804e-409d6c4515e9}]
    170. @=""
    171. [HKEY_CLASSES_ROOT\Drive\shellex\-PropertySheetHandlers]
    172. [HKEY_CLASSES_ROOT\Drive\shellex\-PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}]
    173. [HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers]
    174. [HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers\EnhancedStorageShell]
    175. @="{2854F705-3548-414C-A113-93E27C808C85}"
    176. [HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers\Sharing]
    177. @="{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"
    178. [HKEY_CLASSES_ROOT\Drive\shellex\DragDropHandlers]
    179. [HKEY_CLASSES_ROOT\Drive\shellex\DragDropHandlers\WinRAR]
    180. @="{B41DB860-64E4-11D2-9906-E49FADC173CA}"
    181. [HKEY_CLASSES_ROOT\Drive\shellex\DragDropHandlers\WinRAR32]
    182. @="{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
    183. [HKEY_CLASSES_ROOT\Drive\shellex\FolderExtensions]
    184. [HKEY_CLASSES_ROOT\Drive\shellex\FolderExtensions\{fbeb8a05-beee-4442-804e-409d6c4515e9}]
    185. "DriveMask"=dword:00000020
    186. [HKEY_CLASSES_ROOT\Drive\shellex\PropertySheetHandlers]
    187. @="{5F5295E0-429F-1069-A2E2-08002B30309D}"
    188. [HKEY_CLASSES_ROOT\Drive\shellex\PropertySheetHandlers\Sharing]
    189. @="{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"
    190. [HKEY_CLASSES_ROOT\Drive\shellex\PropertySheetHandlers\{1f2e5c40-9550-11ce-99d2-00aa006e086c}]
    191. [HKEY_CLASSES_ROOT\Drive\shellex\PropertySheetHandlers\{4a7ded0a-ad25-11d0-98a8-0800361b1103}]
    192. [HKEY_CLASSES_ROOT\Drive\shellex\PropertySheetHandlers\{55B3A0BD-4D28-42fe-8CFB-FA3EDFF969B8}]
    193. [HKEY_CLASSES_ROOT\Drive\shellex\PropertySheetHandlers\{5F5295E0-429F-1069-A2E2-08002B30309D}]
    194. [HKEY_CLASSES_ROOT\Drive\shellex\PropertySheetHandlers\{7988B573-EC89-11cf-9C00-00AA00A14F56}]
    195. @=""
    196. [HKEY_CLASSES_ROOT\Drive\shellex\PropertySheetHandlers\{ECCDF543-45CC-11CE-B9BF-0080C87CDBA6}]
    197. [HKEY_CLASSES_ROOT\Drive\shellex\PropertySheetHandlers\{ef43ecfe-2ab9-4632-bf21-58909dd177f0}]
    198. @=""
    199. [HKEY_CLASSES_ROOT\Drive\shellex\PropertySheetHandlers\{fbeb8a05-beee-4442-804e-409d6c4515e9}]
    200. @=""
    201. [HKEY_CLASSES_ROOT\Drive\tabsets]
    202. "location"=dword:00000703
    203. "selection"=dword:00000703

    然后点击文件进行运行,功能就会恢复正常了,磁盘的属性也可以正常点击了,容量也会正常显示了。
    image.pngimage.png