When attempting to use the Search Exporter tool to download results, the tool returns the error:
"No messages returned by search criteria"
This error occurs even though the exact same search query returns valid results when viewed directly within the Archive Manager Website.
This issue is caused by an authentication conflict in Internet Information Services (IIS). The Archive Manager website is configured to use Windows Integrated Authentication, but the IIS settings are also allowing Anonymous Access. The Search Exporter tool attempts to connect anonymously first, fails to retrieve data because of permissions, and incorrectly reports that no messages were found.
This ensures that all connections (including the Search Exporter) are forced to authenticate via Windows credentials.
Open Internet Information Services (IIS) Manager on the Archive Manager server.
Expand the tree and locate the ArchiveManager website.
Right-click on the ArchiveManager site and select Properties (or navigate to Authentication in newer IIS versions).
For IIS 6: Click the Directory Security tab, then click the Edit button under "Authentication and access control."
For IIS 7/10: Double-click the Authentication icon in the center pane.
Uncheck/Disable Anonymous Access (or Anonymous Authentication).
Ensure Windows Authentication is checked/enabled.
Save your changes.
Restart IIS to apply the new settings:
Open a Command Prompt as Administrator.
Type IISRESET and press Enter.
Try the Search Exporter again; it should now successfully retrieve messages.
If you cannot disable Anonymous Access due to other environment requirements, you can switch the instance to use Forms-based authentication.
Open the Archive Manager Configuration Utility.
Modify the DefaultInstance to use Forms Authentication instead of Windows Authentication.
Open a Command Prompt as Administrator and run IISRESET.
Launch the Search Exporter tool.
When prompted for login, select "Archive Manager Authentication" (Forms) and enter your credentials manually.