Forum Discussion

AA_007's avatar
AA_007
Copper Contributor
Feb 04, 2019

How to read Office 365 Outlook attachments using powershell script?

Hi,

We have email account and users daily send emails with attachments to that email account and automated powershell script was running on the windows server to retrieve data from email attachments . Script was working fine but now we are getting authentication token issue since our Outlook was migrated to Office 365.

 

May I know your suggestions to resolve the issue?

I am totally new to azure Office 365 and Azure.

 

Thank you,

AA

8 Replies

  • If you have migrated to Office 365, you might need to change in your scripts the way you authenticate against the service
    • AA_007's avatar
      AA_007
      Copper Contributor

      Thank you for your comments but my problem is, I do not have access for admin site and I am not sure what kind of information I should get from admin team.

       

      • Without seeing the actual script, we can only guess what's going on. My guess would be that the script is using EWS impersonation, as you cannot access item-level details with "regular" PowerShell. Thus you most likely need to add the impersonation permissions on the migrated account. But that's just a guess, best talk with the author of the script.

Resources