AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1498668
Accepted
leeand00
leeand00
Asked: 2019-11-04 09:22:59 +0800 CST2019-11-04 09:22:59 +0800 CST 2019-11-04 09:22:59 +0800 CST

查看搜索结果时,如何将 Windows 10 资源管理器视图默认为“详细信息”?

  • 772

当我在 Windows 资源管理器中进行搜索时,它始终默认为以下无用视图(好吧,反正对我来说没用)称为Content.

我不能也不能使用 <code>Content</code> 视图查看路径。

哦,看,我可以使用 <code>Details</code> 视图调整字段的大小

默认情况下如何让它始终执行详细信息视图?

windows-10 windows-explorer
  • 1 1 个回答
  • 3351 Views

1 个回答

  • Voted
  1. Best Answer
    Keith Miller
    2019-11-06T14:15:53+08:002019-11-06T14:15:53+08:00

    2022 年 8 月 18 日编辑

    使用修改后的代码重新访问此答案:

    • 添加规范名称作为(Default)每个键的值,以使进一步的用户修改更容易。
    • 清除现有保存的 SearchResults 视图以确保应用新的默认值。
    • 为可能IconSize需要LogicalViewMode除Details. 帖子末尾的值列表。

    您需要一些默认情况下不存在的注册表项来将各种SearchResults模板设置为详细信息视图。此修改可以应用于机器范围或每个用户,并且可以通过合并.reg文件或 kby PowerShell脚本来创建注册表项。计算机范围的 PowerShell 编辑必须从管理 PowerShell 控制台运行。.reg 文件可以使用任何文本编辑器保存,然后右键单击并合并。

    机器范围的 PowerShell(管理员)

    $FldrTypes = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes'
    $hkcuBags  = 'HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags'
    $hklmBags  = 'HKLM:\SOFTWARE\Microsoft\Windows\Shell\Bags'
    
    gci $FldrTypes | gp | ? CanonicalName -match '\.SearchResults$' | %{
        New-Item ('{0}\AllFolders\Shell\{1}' -f $hklmBags , $_.PSChildName) -Force |
            Set-ItemProperty -Name '(Default)'     -Value (gp $_.PSPath).CanonicalName -PassThru |
            New-ItemProperty -Name Mode            -value 4  | 
            New-ItemProperty -Name IconSize        -value 16 |
            New-ItemProperty -Name LogicalViewMode -value 1  | Get-Item ### Dislpays key after creation
        $hkcuBags | gci | ? PSChildName -match '\d+' | gci -s | ? PSChildName -eq $_.PSChildName | Remove-Item
    }
    

    每用户 PowerShell

    $FldrTypes = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes'
    $hkcuBags  = 'HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags'
    
    gci $FldrTypes | gp | ? CanonicalName -match '\.SearchResults$' | %{
        New-Item ('{0}\AllFolders\Shell\{1}' -f $hkcuBags , $_.PSChildName) -Force |
            Set-ItemProperty -Name '(Default)' -Value (gp $_.PSPath).CanonicalName -PassThru |
            New-ItemProperty -Name Mode            -value 4  | 
            New-ItemProperty -Name IconSize        -value 16 |
            New-ItemProperty -Name LogicalViewMode -value 1  | Get-Item ### Dislpays key after creation
        $hkcuBags | gci | ? PSChildName -match '\d+' | gci -s | ? PSChildName -eq $_.PSChildName | Remove-Item
    }
    

    机器范围的 .reg 文件

    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{20338b7b-531c-4aad-8011-f5b3db2123ec}]
    @="Contacts.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{36011842-dccc-40fe-aa3d-6177ea401788}]
    @="Documents.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{3D1D4EA2-1D8C-418a-BFF8-F18370157B55}]
    @="OtherUsers.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{4dcafe13-e6a7-4c28-be02-ca8c2126280d}]
    @="Pictures.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{503a4e73-1734-441a-8eab-01b3f3861156}]
    @="Communications.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{59BD6DD1-5CEC-4d7e-9AD2-ECC64154418D}]
    @="UsersLibraries.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{71689ac1-cc88-45d0-8a22-2943c3e7dfb3}]
    @="Music.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7fde1a1e-8b31-49a5-93b8-6be14cfa4943}]
    @="Generic.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{921C636D-9FC8-40d7-899E-0845DCD03010}]
    @="PublishedItems.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{e053a11a-dced-4515-8c4e-d51ba917517b}]
    @="UserFiles.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{ea25fbd7-3bf7-409e-b97f-3352240903f4}]
    @="Videos.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    
    

    每用户 .reg 文件

    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{20338b7b-531c-4aad-8011-f5b3db2123ec}]
    @="Contacts.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{36011842-dccc-40fe-aa3d-6177ea401788}]
    @="Documents.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{3D1D4EA2-1D8C-418a-BFF8-F18370157B55}]
    @="OtherUsers.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{4dcafe13-e6a7-4c28-be02-ca8c2126280d}]
    @="Pictures.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{503a4e73-1734-441a-8eab-01b3f3861156}]
    @="Communications.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{59BD6DD1-5CEC-4d7e-9AD2-ECC64154418D}]
    @="UsersLibraries.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{71689ac1-cc88-45d0-8a22-2943c3e7dfb3}]
    @="Music.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7fde1a1e-8b31-49a5-93b8-6be14cfa4943}]
    @="Generic.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{921C636D-9FC8-40d7-899E-0845DCD03010}]
    @="PublishedItems.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{e053a11a-dced-4515-8c4e-d51ba917517b}]
    @="UserFiles.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    [HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{ea25fbd7-3bf7-409e-b97f-3352240903f4}]
    @="Videos.SearchResults"
    "Mode"=dword:00000004
    "IconSize"=dword:00000010
    "LogicalViewMode"=dword:00000001
    
    

    这些不同的价值观是什么?

    gci 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes' |
    >>    ?{(gp $_.PSPath).CanonicalName -match '\.S'} |
    >>       select PSCHildname, @{N='Name';E={(gp $_.PSPath).CanonicalName}}                              
    PSChildName                            Name
    -----------                            ----
    {20338b7b-531c-4aad-8011-f5b3db2123ec} Contacts.SearchResults
    {36011842-dccc-40fe-aa3d-6177ea401788} Documents.SearchResults
    {3D1D4EA2-1D8C-418a-BFF8-F18370157B55} OtherUsers.SearchResults
    {4dcafe13-e6a7-4c28-be02-ca8c2126280d} Pictures.SearchResults
    {503a4e73-1734-441a-8eab-01b3f3861156} Communications.SearchResults
    {59BD6DD1-5CEC-4d7e-9AD2-ECC64154418D} UsersLibraries.SearchResults
    {71689ac1-cc88-45d0-8a22-2943c3e7dfb3} Music.SearchResults
    {7fde1a1e-8b31-49a5-93b8-6be14cfa4943} Generic.SearchResults
    {921C636D-9FC8-40d7-899E-0845DCD03010} PublishedItems.SearchResults
    {e053a11a-dced-4515-8c4e-d51ba917517b} UserFiles.SearchResults
    {ea25fbd7-3bf7-409e-b97f-3352240903f4} Videos.SearchResults
    

    IconSoze/LogicalViewMode/Mode/Vid 值:

    
    Name        LVM Mode Vid                                    IconSize
    ----        --- ---- ---                                    --------
    Details     1   4    {137E7700-3573-11CF-AE69-08002B2E1262} 16      
    Tiles       2   6    {65F125E5-7BE1-4810-BA9D-D271C8432CE3} 48      
    SmIcons     3   1    {089000C0-3573-11CF-AE69-08002B2E1262} 16..31  
    Icons(M-XL) 3   1    {0057D0E0-3573-11CF-AE69-08002B2E1262} 33..256 
    List        4   3    {0E1FA5E0-3573-11CF-AE69-08002B2E1262} 16      
    Content     5   8    {30C2C434-0889-4C8D-985D-A9F71830B0A9} 32      
    

    • 12

相关问题

  • 资源管理器侧面板中的桌面外壳快捷方式

  • 为什么我不能将文件从 Android 发送到 Windows 10?

  • 在多个文件上打开方式?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    Windows 10 服务称为 AarSvc_70f961。它是什么,我该如何禁用它?

    • 2 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Marko Smith

    ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败:无法获取本地颁发者证书 (_ssl.c:1056)

    • 4 个回答
  • Marko Smith

    我如何知道 Windows 安装在哪个驱动器上?

    • 6 个回答
  • Martin Hope
    Albin 支持结束后如何激活 WindowsXP? 2019-11-18 03:50:17 +0800 CST
  • Martin Hope
    fixer1234 “HTTPS Everywhere”仍然相关吗? 2019-10-27 18:06:25 +0800 CST
  • Martin Hope
    Kagaratsch Windows 10 删除大量小文件的速度非常慢。有什么办法可以加快速度吗? 2019-09-23 06:05:43 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    Inter Sys Ctrl+C 和 Ctrl+V 是如何工作的? 2019-05-15 02:51:21 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve