wcnwiz.dll Error in Windows 10 and 11: Windows Connect Now setup wizard

A Windows Connect Now setup wizard fails to show the intended device or cannot advance a page, with wcnwiz.dll named in a dialog or log.
The Windows file inventory identifies wcnwiz.dll as Windows Connect Now Wizards. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Determine whether the wizard finds other documented compatible devices. Check the target device's install mode and the Windows build's supported setup flow. A functioning normal Wi-Fi connection narrows the problem to provisioning.
Repair the affected feature
Cancel the incomplete wizard and restart setup through the official device utility, or use the device maker's supported secured manual workflow.
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
Confirm the intended device is visible, finishes the approved setup, and remains reachable after the setup wizard is closed.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.