msscntrs.dll Error in Windows 10 and 11: Search performance counters

A monitoring dashboard cannot display specific Windows Search counters, although ordinary search works.
The Windows file inventory identifies msscntrs.dll as PKM Perfmon Counter DLL. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Open Performance Monitor and look for the expected Windows Search counter set on the affected build. Record the machine and whether the error is local or from a collector.
Repair the affected feature
Use matching supported counter queries from the monitoring tool. For a system-wide failure of Windows performance counters, use the administrator’s documented repair instead of editing registry counters by hand.
If Windows reports corruption of a protected system file, use Microsoft’s system file repair procedure. Obtain software and drivers through Windows Update or the applicable publisher.
Verify the repair
Open the same counter in the local viewer and confirm nonempty readings during a small test search.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.