Powershell script to check the last email receipt time RRS feed

  • Question

  • Hi all

    I am new in Powershell and would be happy to get help with it

    I'm working on creating a script that does this:

    1. Connect to 365 mailbox

    2. Check when the last email was received

    3. If the time is more than ten minutes then send an email alert or rest api

    I succeeded in the first step but not beyond.

    Thanks friends

    Thursday, May 23, 2019 7:45 AM


  • You should ask a specific question about a particular piece of code you wrote and you should post this piece of code here (formatted as code, please).

    Did you try to search for it? Something like this has been asked about a thousand times before.

    Microsoft Technet Script Gallery


    Live long and prosper!


    Thursday, May 23, 2019 8:05 AM

All replies