Hi All,
We are currently at the beginning stage of migrating our mailboxes from Exchange 2003 to Exchange 2010. The problems we are encountering is that mailboxes are failing to migrate because there are sync issue emails (conflicts, server\local failures) as some of our users our in cache exchanged mode.
Is there a way of using power shell to delete the emails present in these folders so our migration can be quicker? I currently have an input file with a list users but I’m not sure if it’s possible to select the mailbox on exchange 2003 and then deleting items in this specific folder.
Something I have found already is the below where it’s deleting the users deleted items but I think that is just for a normal outlook session.
Emptying your Deleted Items folder $deletedItems = $outlook.Session.GetDefaultFolder(3) # == olFolderDeletedItems $deletedItems.Items | %{ $_.delete() } All advice would be most grateful.
Thanks Will