How does the C++ tool QueryADObject.exe improve upon Microsoft’s sample code for AD enumeration?

The C++ tool merges features from Microsoft’s sample and Recon-AD, providing an exe format with multiple functions for querying users, computers, and groups. It supports search conditions and offers a `ShortData` output mode for concise name listing, unlike Microsoft’s limited `QueryUser` method. This makes enumeration more efficient and is especially useful during penetration tests where speed matters, similar to the approaches in [obtaining installed programs](/news/penetration-basics-obtaining-the-list-of-installed-programs-on-the-current-system).