Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community

Extract emails from Outlook Archive

Iron Contributor

I have a user with a root folder in his Archive that has over 100 subfolders with emails in them.


Is there a way to pull only the emails without the folder structure from the root folder and all its subfolders? 

3 Replies

You need to be a bit more specific here, pull them out as in flatten the hierarchy or export them or?

Yes Flatten. Keep the root folder but remove all subfolders but keep the emails in them.@Vasil Michev 

You will have to use some EWS-based script for that, here's a sample one: