How to get mail from O365 with powershell with the new V2 api? RRS feed

  • Question

  • I just realized the new api is using oauth and Im trying to find a simple (working ) example of getting at a mailbox.  I have my test mailbox setup and the credentials, but cant seem to find a complete example of doing this with powershell.  Can someone point me at a working example?  Need to grab new files that have an attachment.

    This is what I was starting with, but its using v1

    Also, I need to run this via a windows scheduled task.  Wont I need to bypass the pop-up window from azure?
    • Edited by shiftbit Tuesday, June 18, 2019 8:37 PM dsfgd
    Tuesday, June 18, 2019 8:32 PM

All replies