Shell Bags 注册表黑客

Shell Bags 注册表黑客

Windows 经常会违背用户的意愿自行决定文件夹的显示方式。尽管 Windows 有各种“官方”方法来确保文件夹的显示确切地我发现他们经常会按照用户的意愿恢复。因此,我现在正在尝试注册路径。

我希望为所有文件夹(无论类型)设置(默认)文件夹视图:

  1. 将视图设置为详细信息(特别是对于媒体文件/文件夹,即Music,,PicturesVideos,我仍然希望它们像任何其他文件/文件夹一样显示,即列Name, Date modified, Type, Size
  2. 将分组依据设置为无(Downloads文件夹默认按日期分组)
  3. 将排序依据设置为名称(同样Downloads按日期排序)
  4. 将排序顺序设置为升序(Downloads将按最新文件排序,IIRC 是降序)
  5. 禁用自动文件夹类型推断(可能会破坏我设置的所有内容)

我尝试过以下操作:

  1. 这个帖子禁用Downloads文件夹分组
  2. 这个帖子它告诉我要将哪些文件夹 ID 放入 shell 包中,并加载所有文件夹注册表项以设置其默认值
  3. 这个帖子它告诉我如何重置文件夹视图设置

我还尝试将看似相关的注册表项从似乎具有我想要的设置的位置复制到相关文件夹 ID 的注册表项:

注册表项

排序二进制键

然而,经过所有的努力和多次重新启动后,我发现Downloads文件夹视图仍然是错误的 - 它仍然按日期降序排序。

我的黑客攻击可能缺少什么部分?

这里是我设置的注册表项的转储:

Windows Registry Editor Version 5.00
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell]
"BagMRU Size"=dword:00002710
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags]
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders]
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
"FolderType"="NotSpecified"
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{0B2BAAEB-0042-4DCA-AA4D-3EE8648D03E5}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{3F2A72A7-99FA-4DDB-A5A8-C604EDF61D6B}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{3F98A740-839C-4AF7-8C36-5BADFB33D5FD}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5F4EAB9A-6833-4F61-899D-31CF46979D49}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5FA96407-7E77-483C-AC93-691D05850DE8}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{631958A6-AD0F-4035-A745-28AC066DC6ED}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7D49D726-3C21-4F05-99AA-FDC2C9474656}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:80,a1,a0,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,50,a4,9e,d0,6e,02,\
  00,00,e0,53,97,d0,6e,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{885A186E-A440-4ADA-812B-DB871B942259}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:80,a1,a0,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,50,a4,9e,d0,6e,02,\
  00,00,e0,53,97,d0,6e,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94D6DDCC-4A68-4175-A374-BD584A510B78}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:80,a1,a0,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,50,a4,9e,d0,6e,02,\
  00,00,e0,53,97,d0,6e,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{B3690E58-E961-423B-B687-386EBFD83239}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:80,a1,a0,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,50,a4,9e,d0,6e,02,\
  00,00,e0,53,97,d0,6e,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{C4D98F09-6124-4FE0-9942-826416082DA9}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:80,a1,a0,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,50,a4,9e,d0,6e,02,\
  00,00,e0,53,97,d0,6e,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00
 
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{FBB3477E-C9E4-4B3B-A2BA-D3F5D3CD46F9}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:80,a1,a0,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,50,a4,9e,d0,6e,02,\
  00,00,e0,53,97,d0,6e,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags]
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders]
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
"FolderType"="NotSpecified"
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{0B2BAAEB-0042-4DCA-AA4D-3EE8648D03E5}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{3F2A72A7-99FA-4DDB-A5A8-C604EDF61D6B}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{3F98A740-839C-4AF7-8C36-5BADFB33D5FD}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5F4EAB9A-6833-4F61-899D-31CF46979D49}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5FA96407-7E77-483C-AC93-691D05850DE8}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{631958A6-AD0F-4035-A745-28AC066DC6ED}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7D49D726-3C21-4F05-99AA-FDC2C9474656}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{885A186E-A440-4ADA-812B-DB871B942259}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94D6DDCC-4A68-4175-A374-BD584A510B78}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{B3690E58-E961-423B-B687-386EBFD83239}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{C4D98F09-6124-4FE0-9942-826416082DA9}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{FBB3477E-C9E4-4B3B-A2BA-D3F5D3CD46F9}]
"FFlags"=dword:41200001
"GroupByDirection"=dword:00000000
"GroupView"=dword:00000000
"IconSize"=dword:00000010
"LogicalViewMode"=dword:00000001
"Mode"=dword:00000004
"Sort"=hex:a0,56,97,d0,6e,02,00,00,60,cd,97,d0,6e,02,00,00,30,00,31,00,20,00,\
  28,00,31,00,30,00,39,00,32,00,36,00,31,00,36,00,31,00,39,00,33,00
 

感谢您的时间。

答案1

问题中列出的要求均由应用程序处理窗口设置窗口。它是一款免费、开源、可移植的应用程序,通过设置/清除 Keith Miller 的答案中概述的相同注册表项/值来工作。

图像

答案2

首先,为了理解各种设置的相互作用,对导出的注册表项做一些注释:

  • 如果您通过 设置了任何机器范围的默认值HKLM\...\AllFolders,则无需在 下输入重复项HKCU\...\AllFolders。只有当您想覆盖机器范围设置的某些方面时才需要它们。

  • 存在"FolderType"="NotSpecified"以下值[HKCU|HKLM]\...AllFolders将覆盖内容嗅探确定文件夹的初始视图,因此 FolderTypes 的自定义默认值(如MusicPictures和 )仅当通过对话框中的选项卡Video修改文件夹视图时才会应用。CustomizeProperties

我个人并不想Generic在所有文件夹上强制使用模板;这似乎有点太过分了。相反,为了获得类似的结果,我更喜欢自定义其他 FolderType 的默认值以复制该类型的设置Generic

我也不喜欢使用AllFolders自定义任何可以通过以下方式自定义的类型,Apply to Folders原因如下:

  • 如果 FolderType 实现了Apply to Folders,则AllFolders相同类型的设置将导致Apply to Folders设置被忽略,即使Apply to Folders之后设置了 。这可能会造成混淆。

  • Apply to Folders定制 可以 很 容易 地 通过 UI 进行 修改 -- 但 并非 如此AllFolders.

  • Apply to Folders自定义项在删除BagsBagMRU注册表项后仍然存在。

我认为AllFolders最好保留修改SearchResults默认值的条目,如果需要,可以设置不同于探索者给定类型的默认值。

因此,考虑到所有这些,深吸一口气,准备重新开始几次,然后开始。

  1. 通过删除以下注册表项来删除现有的已保存视图和自定义项:

    HKLM\SOFTWARE\Microsoft\Windows\Shell\Bags
    HKCU\SOFTWARE\Microsoft\Windows\Shell\BagMRU
    HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU
    HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags
    
    • 在 下,删除除(保存桌面布局)HKCU\SOFTWARE\Microsoft\Windows\Shell\Bags之外的所有子项。1

    • 在 下HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams,删除Defaults子项以及所有编号子项,仅保留Desktop子项。

      电源外壳(管理员/提升):

        -split @'
        HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU
        HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags
        HKCU:\SOFTWARE\Microsoft\Windows\Shell\BagMRU
        HKLM:\SOFTWARE\Microsoft\Windows\Shell\Bags
        '@ | Remove-Item -Recurse -Force
      
        Get-ChildItem HKCU:\SOFTWARE\Microsoft\Windows\Shell\Bags | where PSChildName -ne 1 | Remove-Item -Recurse -Force
        Get-ChildItem HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams | where PSChildName -ne Desktop | Remove-Item -Force  
      
  2. 重新开始

  3. 设置Generic自定义模板:
    a.打开探索者This PC\Desktop文件夹(或默认为模板的任何其他文件夹Generic)。b
    . 对视图进行所有所需的修改。c
    .View功能区 -> Options-> Change folder and search options->View选项卡 -> Apply to Folders-> 接受确认。

  4. 设置OneDriveGeneric自定义模板:
    a.打开探索者OneDrive文件夹。b
    . 对视图进行所有所需的修改。c
    .View功能区 -> Options-> Change folder and search options->View选项卡 -> Apply to Folders-> 接受确认。

  5. 在 regedit 中,验证名为的值:

    • {5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}(通用的)
    • {4F01EBC5-2385-41f2-A28E-2C5C91FB56E0}(OneDrive通用)

    已被创建于:

    • HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults

现在,我们要创建这些值的副本,这些副本仅在名称上有所不同。您要复制模板Generic七次,并重命名副本:

{db2a5d8f-06e6-4007-aba6-af877d526ea6}
{7d49d726-3c21-4f05-99aa-fdc2c9474656}
{885a186e-a440-4ada-812b-db871b942259}
{94d6ddcc-4a68-4175-a374-bd584a510b78}
{b3690e58-e961-423b-b687-386ebfd83239}
{CD0FC69B-71E2-46e5-9690-5BCD9F57AAB3}
{5fa96407-7e77-483c-ac93-691d05850de8}

您还需要创建该OneeDrive模板的四个副本并命名这些副本:

{DD61BD66-70E8-48dd-9655-65C5E1AAC2D1}
{672ECD7E-AF04-4399-875C-0290845B6247}
{71D642A9-F2B1-42cd-AD92-EB9300C7CC0A}
{51294DA1-D7B1-485b-9E9A-17CFFE33E187}

如果您手动执行此操作,则需要导出包含两个模板值的密钥,然后使用文本编辑器在文件中复制并重命名所需的值.reg,然后合并编辑后的.reg文件。

如果你愿意电源外壳,使用此代码:

$Defaults        = 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults'

$Generic         = (gp $Defaults).'{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}'
$OneDriveGeneric = (gp $Defaults).'{4F01EBC5-2385-41f2-A28E-2C5C91FB56E0}'

-split @'
{db2a5d8f-06e6-4007-aba6-af877d526ea6}
{7d49d726-3c21-4f05-99aa-fdc2c9474656}
{885a186e-a440-4ada-812b-db871b942259}
{94d6ddcc-4a68-4175-a374-bd584a510b78}
{b3690e58-e961-423b-b687-386ebfd83239}
{CD0FC69B-71E2-46e5-9690-5BCD9F57AAB3}
{5fa96407-7e77-483c-ac93-691d05850de8}
'@ | ForEach {
    Set-ItemProperty -Path $Defaults -Name $_ -Value $Generic
}

-split @'
{DD61BD66-70E8-48dd-9655-65C5E1AAC2D1}
{672ECD7E-AF04-4399-875C-0290845B6247}
{71D642A9-F2B1-42cd-AD92-EB9300C7CC0A}
{51294DA1-D7B1-485b-9E9A-17CFFE33E187}
'@ | ForEach {
    Set-ItemProperty -Path $Defaults -Name $_ -Value $OneDriveGeneric
}

无论您如何复制值,注册表中的最终结果应如下所示:

在此处输入图片描述

  1. 重新启动系统。

将在编辑中解决搜索结果和库问题。

相关内容