pnidui.dll Error in Windows 10 and 11: Network status interface errors

The taskbar network flyout closes or shows a misleading status, or Windows logs pnidui.dll during the failure.
What pnidui.dll does
This Windows component is associated with the network status user interface.
Start with this check
Test the connection with a trusted website and open Network & internet in Settings. Check whether connectivity actually fails or only the status icon is affected.
If a repeatable crash closes the app, open View reliability history in Start. Select the matching event and save its technical details if available, especially the faulting application, module path and exception code. Keep the full error from any installer or tool as well.
Choose the repair for your situation
If connections fail too, use the appropriate Windows network troubleshooting steps. If connectivity works but the flyout fails, restart Windows, apply supported updates and capture any repeated Explorer crash details.
If the same failure appears in several built-in Windows tools, record the separate errors and whether they began after an update. For suspected corruption of protected Windows files, follow Microsoft’s DISM and System File Checker instructions. Run DISM before SFC, read the results and restart before repeating the original test.
Confirm the repair
Open the network panel again and confirm it correctly reflects the network Windows is actually using. If the error returns, compare its wording, module and trigger with your original notes so the next repair can address the right failure.
Avoid standalone DLL downloads. Use the Windows servicing path, the hardware vendor’s supported driver, or the official application installer as appropriate for the affected component.
See wlanapi.dll troubleshooting and the DLL Errors & Fixes Library. Reference: Microsoft’s Windows troubleshooters.