Share via

in-place discovery export keeps asking for credentials

create share 681 Reputation points
2023-06-10T23:34:51.9166667+00:00

Hi,

In-Place eDiscovery keeps asking for credentials even after assigning the required permissions to the user. Exchange 2013.

Is there a command in Powershell to find emails in all the mailboxes having a specific subject and export them to a .pst file?

Thanks.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

0 comments No comments

Answer accepted by question author

Dezhi Li-MSFT 800 Reputation points
2023-06-12T08:54:57.8266667+00:00

Hi @create share

You can use the following command to copy emails of a specific subject to the SearchResults folder of the administrator mailbox. Note that by default Search-Mailbox is available only in the Mailbox Search or Mailbox Import Export roles, and these roles aren't assigned to any role groups. To use this cmdlet, you need to add one or both of the roles to a role group (for example, the Organization Management role group). Only the Mailbox Import Export role gives you access to the DeleteContent parameter.

Get-Mailbox -ResultSize Unlimited | Search-Mailbox -SearchQuery 'Subject: "specific subject"' -TargetMailbox Administrator -TargetFolder "SearchResults"

You can export the SearchResults folder as a pst file with the New-MailboxExportRequest command.

New-MailboxExportRequest -Mailbox Administrator -FilePath "UNC path" -IncludeFolders "SearchResults\*"

See the link below for more details.

https://learn.microsoft.com/en-us/powershell/module/exchange/search-mailbox?view=exchange-ps

https://learn.microsoft.com/en-us/powershell/module/exchange/new-mailboxexportrequest?view=exchange-ps

Best Regards,

Dezhi


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
  

Was this answer helpful?


2 additional answers

Sort by: Most helpful
  1. Juan A. González Escobar 0 Reputation points
    2025-10-18T07:03:26.63+00:00

    Hello,

    For me what worked was using Google Chrome instead of MSEdge. It downloaded the PST file instantly. None of the other solutions, like setting the DWORD value to 1 or turning off Extended Protection on EWS worked.

    I hope it helps someone,

    Juan

    Was this answer helpful?

    0 comments No comments

  2. Amit Singh 5,326 Reputation points
    2023-06-12T06:09:45.7866667+00:00

    Did you login to the Windows server with that domain admin account?

    The wrong Windows credentials may be saved in the Credential Manager. Try to clear all saved credentials in the Credential Manager from the Control Panel and export the result again. 

    Also, check this link for more insight - https://social.technet.microsoft.com/Forums/windows/en-US/f316767a-2b15-44e7-91cb-832c62f3a705/ediscovery-download-pst-prompts-for-credentials-but-will-not-accept-any-credentials?forum=Exch2016Comp

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.