Validating and Initializing a Message Store using Shell scripting
Posted on 2009-02-17
I'm using Powershell to create new mailboxes and import existing pst's in it. The mailbox creates just fine but the import fails. It gives this error: " Error occurred in the step: Approving object. An unknown error has occurred., error code: -2147221219". I have enough rights because I run the script as exchange admin. If I setup outlook and look in the mailbox it's empty. Afterwards, when I do the import again, it works fine.
My guess is that, when creating the mailbox the first time, the mailbox is empty, no mails but also no default mailfolders. When you open the mailbox with outlook the first time, these folders are created. So I need a shell script to 'initialise' a mailbox the first so the right folder structure is created. Anybody knows how to do that?