devicepairingfolder.dll Error in Windows 10 and 11: Device Pairing Folder

A legacy add-device window fails to open or remains empty when the current Settings page can still list a peripheral. If the message or log names devicepairingfolder.dll, capture the full path, Windows build and time of the failure.
Microsoft binary metadata identifies this file as Device Pairing Folder. Use the filename as a diagnostic clue and check the action that failed before repairing Windows.
Isolate the failure
Try adding the same device from Windows Settings. Record which interface fails and whether it fails for other supported peripherals.
Repair the affected component
Use the Windows Settings pairing workflow for your version. If the legacy shell also fails in another Windows user account, check Windows updates and use Microsoft’s system file repair.
For a protected Windows file, use Microsoft’s System File Checker instructions when there is evidence of Windows component damage. Keep DLLs supplied by Windows or the full vendor package.
Verify the repair
An approved device can be selected and subsequently appears in the paired list.
See Microsoft’s guidance for this feature, the exact Windows file record, and the related PC Repair Atlas guide.