dsquery.dll Error in Windows 10 and 11: Active Directory directory search interface

An approved search tool stops returning a known directory object or the directory find dialog reports dsquery.dll. If the message or log names dsquery.dll, capture the full path, Windows build and time of the failure.
Microsoft binary metadata identifies this file as Directory Service Find. Use the filename as a diagnostic clue and check the action that failed before repairing Windows.
Isolate the failure
Compare the same authorized test object with a basic read-only query and check the requested scope. Confirm the domain connection and current role.
Repair the affected component
Correct the documented filter or read scope. Repair the approved administrative tools if several searches fail despite normal access.
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
The same search returns the expected authorized test object.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.