We are splitting PST files into smaller PSTs for Exchange Online New-MailboxImportRequest.
We can split the large PST files using code below. However when we create Mailbox Import requests the import process skips all items in the PSTs as corrupt items.
I have tried splitting with the latest version of the DLL and also 19.10. We are using 30 day trial license.
[Reflection.Assembly]::LoadFile(“C:\Program Files (x86)\Aspose\Aspose.Email for .NET\Bin\net4.0\Aspose.Email.dll”)
$license = New-Object Aspose.Email.License
$license.SetLicense($licenseFile)
$PersonalStorage = [Aspose.Email.Storage.Pst.PersonalStorage]::FromFile($PstFilePath)
$PersonalStorage.SplitInto($PSTFileSizeBytes, $SplitPstFilesDir)