大网数据广告活动
性能与资源

High CPU usage when you search in the Settings app in Windows Server 2016

· 52CE 我爱测

Describes an issue in which you experience high CPU usage when you search in the Settings app in Windows Server 2016. Provides a workaround.

This article describes an issue in which you experience high CPU usage when you search in the Settings app in Windows Server 2016.

Applies to:   Windows Server 2016
Original KB number:   4504547

Symptoms

In Windows Server 2016, you search on a term in the Settings app, as shown in the following screenshot:

When you start the search, you notice that the CPU usage is high.

Note: This issue occurs only on Windows Server 2016. Windows Server 2019 and other client versions of Windows do not experience this issue.

Cause

This issue occurs because the Windows Search (WSearch) service is disabled by default in Windows Server 2016. The Settings app (SystemSetting.exe) submits a query to the WSearch service when the service is disabled. Then, the Settings app tries to scan all contents that is stored in the following folder:

C:\Users\<User Name>\AppData\Local\Packages\windows.immersivecontrolpanel_cw5n1h2txyewy\LocalState\Indexed\Settings\<Locale>

This behavior causes high CPU usage for a certain period.

Workaround

To work around this issue, the Windows Search (WSeach) service must be enabled. To do this, run the following command at an elevated command prompt that has administrator permissions:

sc config WSearch start= auto
sc start WSearch

More information

To minimize CPU usage by the Windows Search service, specify and exclude the search path for WSearch. To do this, follow these steps.

  1. Open Group Policy Management Console (gpmc.msc) on a domain controller (DC) in the environment.

  2. Set the following policies:

    • Computer Configuration > Administrative Templates > Windows Components > Search > Default excluded path

      To minimize the effect of enabling Windows search, set Default excluded path to: C:\Users

      By default, C:\Users is always indexed. Therefore, you have to exclude the path manually if you want to reduce the performance effect of enabling the search service.

      :::image type="content" source="media/high-cpu-usage-search-in-settings-app/default-excluded-path.png" alt-text="Screenshot of the Default excluded paths window with Enabled selected.":::

    • Computer Configuration > Administrative Templates > Windows Components > Search > Default indexed path

      Set Default indexed path to: C:\Users\*\AppData\Local\Packages\windows.immersivecontrolpanel_cw5n1h2txyewy

      :::image type="content" source="media/high-cpu-usage-search-in-settings-app/default-indexed-path.png" alt-text="Screenshot of the Default indexed paths window with Enabled selected, and the path value is set.":::

Also, you can use the following policies, as necessary, to exclude indexing folders:

  • Prevent indexing of certain file types
  • Prevent indexing when running on battery power to conserve energy
  • Prevent indexing certain paths
  • Prevent indexing e-mail attachments
  • Prevent indexing files in offline files cache
  • Prevent indexing Microsoft Office Outlook
  • Prevent indexing public folders

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。