in-place discovery export keeps asking for credentials

create share 646 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 Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,331 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dezhi Li-MSFT 780 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". 
      


1 additional answer

Sort by: Most helpful
  1. Amit Singh 4,846 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

    0 comments No comments