pnpui.dll Error in Windows 10 and 11: Windows device installation user interface

A new device may be detected while the expected installation or action dialog does not appear.
The Windows file inventory identifies pnpui.dll as Plug and Play User Interface DLL. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Check Device Manager and Windows setup logs before changing the device. Compare a documented supported installation under the intended account.
Check whether Windows installed the device even though the dialog was missing. Note the hardware ID and attempt time, then check the corresponding device entry in %windir%\INF\setupapi.dev.log. Microsoft’s SetupAPI guidance explains that log. If installation completed, verify the device’s expected function. If the same entry reports failure, give the first error and hardware ID to the device maker.
Repair the affected feature
Use Windows’ supported device setup controls and the vendor’s signed installer. Keep unrelated devices working during the test.
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
Reconnect the intended device and confirm Windows displays the expected status or completed installation.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.