locked
Content Search RRS feed

  • Question

  • Hi Experts

    I want to export Deleted Items and Recover Deleted Items folder to PST file using content search for one user. experts guide me how to export pst file. When i click new search -Search query i am not sure what conditions to use.
    Wednesday, February 26, 2020 9:35 PM

Answers

  • Hi Glenn Maxwell,

    To export Deleted Items and Recover Deleted Items folder to PST file, you can use Folderid to do the search query.  Detailed steps are here as below:

    1.Save the text mentioned in this article to a Windows PowerShell script file by using a filename suffix of .ps1 such as, GetFolderSearchParameters.ps1

    2. Connect to Exchange online and run the scripts. Enter the email address which you'd like to search that the script prompts you for. Like this 

    3. Then you'll get a list of Folderid of this mailbox. Copy the Folderid of /Deleted Items and /Recoverable Items.

    4. Create a new search. Enter folderid in the blanket of Keywords. And specify the location. Save and run.

    5. To export the result, in the details pane, under Export results to a computer, click Start export.

    Regards,

    Beverly Gao


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Thursday, February 27, 2020 9:41 AM

All replies

  • Hi Glenn Maxwell,

    To export Deleted Items and Recover Deleted Items folder to PST file, you can use Folderid to do the search query.  Detailed steps are here as below:

    1.Save the text mentioned in this article to a Windows PowerShell script file by using a filename suffix of .ps1 such as, GetFolderSearchParameters.ps1

    2. Connect to Exchange online and run the scripts. Enter the email address which you'd like to search that the script prompts you for. Like this 

    3. Then you'll get a list of Folderid of this mailbox. Copy the Folderid of /Deleted Items and /Recoverable Items.

    4. Create a new search. Enter folderid in the blanket of Keywords. And specify the location. Save and run.

    5. To export the result, in the details pane, under Export results to a computer, click Start export.

    Regards,

    Beverly Gao


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Thursday, February 27, 2020 9:41 AM
  • Hi, I'm here to confirm with you if your issue has been resolved. If the problem is successfully solved, you can share your solution and mark them or the helpful reply as answer, this will make answer searching in the forum easier and be beneficial to other community members as well.

    Regards,

    Beverly Gao


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Tuesday, March 3, 2020 9:04 AM
  • I want to export deleted items and recoverable items for one user. when i run this ps1 will this script prompt me a single user or how can i get this information for single user


    Friday, March 6, 2020 8:05 AM
  • Hi Glenn Maxwell,

    When you run the script GetFolderSearchParameters.ps1, you will be prompt for the email address which you'd like to get folderid of. Enter the single user at that time and everything will be fine.

    Regards,

    Beverly Gao


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.

    Friday, March 6, 2020 8:53 AM