How to Convert OST to PST by Windows PowerShell?

Anonymous
2024-10-22T11:04:26+00:00

I need to convert my OST Files into PST by Windows PowerShell but the cd prompt gives an undefined error. They show an error in the AddStoreFromFile syntax. I request the community to please answer my query if you have a solution.

Windows Server Remote and virtual desktops PowerShell

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

8 answers

Sort by: Most helpful
  1. Anonymous
    2024-10-23T01:17:53+00:00

    Hi Vashu Sonkar,

    What is the PowerShell command and what error do you get when you run that? Can you post the full error message or the screenshot?

    0 comments No comments
  2. Anonymous
    2024-10-23T04:04:29+00:00

    That's the Error screenshot

    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Anonymous
    2024-10-24T06:12:13+00:00

    According to the error message, the script is trying to invocate the AddStoreFromFile method which actually does not exist. The Microsoft.Office.Interop.Outlook.NameSpaceClass class has only the AddStore(Object) and AddStoreEx(Object, OlStoreType) methods.

    NameSpaceClass Class (Microsoft.Office.Interop.Outlook) | Microsoft Learn

    0 comments No comments
  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more