PowerShell all emails in a exchange online users mailbox

%3CLINGO-SUB%20id%3D%22lingo-sub-926597%22%20slang%3D%22en-US%22%3EPowerShell%20all%20emails%20in%20a%20exchange%20online%20users%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-926597%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ecan%20I%20read%20with%20PowerShell%20all%20emails%20in%20a%20exchange%20online%20users%20mailbox%3F%20I%20like%20to%20build%20a%20report%20(Time%2C%20Send%20From%2C%20Subject%2C%20Attachment%E2%80%A6)%3C%2FP%3E%3CP%3EUser%20is%20informed%20and%20the%20user%20I%20have%20the%20user%20credentials.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20help%3C%2FP%3E%3CP%3EStefan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-926597%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-927282%22%20slang%3D%22en-US%22%3ERe%3A%20PowerShell%20all%20emails%20in%20a%20exchange%20online%20users%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-927282%22%20slang%3D%22en-US%22%3E%3CP%3ENo.%20You%20can%20do%20it%20via%20the%20EWS%20API%20or%20the%20Graph%20one%2C%20both%20of%20which%20can%20be%20called%20via%20PowerShell%20if%20needed.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Contributor

Hello,

 

can I read with PowerShell all emails in a exchange online users mailbox? I like to build a report (Time, Send From, Subject, Attachment…)

User is informed and the user I have the user credentials.

 

Thanks for your help

Stefan

1 Reply

No. You can do it via the EWS API or the Graph one, both of which can be called via PowerShell if needed.