wdc.dll Error in Windows 10 and 11: Performance Monitor data collection

Performance Monitor displays an empty collector graph or stops on an error naming wdc.dll. Work out whether the missing samples are local or collected remotely.
The Windows file inventory identifies wdc.dll as Performance Monitor. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Add one built-in local counter to a new, temporary view and compare it with the failing counter set. Confirm the associated application or service is active and record its status.
Repair the affected feature
Restore the affected application's counters through its supported package or repair Windows through its servicing path if built-in counters broadly fail. Preserve existing collector configuration.
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
Collect a short local sample and repeat the failure with the original approved collector. Confirm it records the expected sample values and timestamps.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.