【问题标题】:How to change the Windows Search Index location using powershell?如何使用 powershell 更改 Windows 搜索索引位置?
【发布时间】:2012-04-08 12:50:34
【问题描述】:

Windows 搜索索引的默认位置是C:\ProgramData\Microsoft。就我而言,此位置位于空间有限的 SSD 上。因此,我想将索引缓存移动到具有更多空间的不同驱动器。我知道如何使用 GUI 来做到这一点。

我想了解如何使用 PowerShell 执行此操作?所以我可以自动化这个过程。

【问题讨论】:

    标签: search powershell automation indexing windows-search


    【解决方案1】:

    您可以通过 Windows 注册表执行此操作:

    Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows Search" -Name "DataDirectory" -Value "X:\Microsoft\Search\Data\"
    

    【讨论】:

      猜你喜欢
      • 2012-12-04
      • 2017-01-24
      • 1970-01-01
      • 2011-11-13
      • 2015-10-19
      • 1970-01-01
      • 2021-10-27
      • 1970-01-01
      • 2012-11-03
      相关资源
      最近更新 更多