PowerShell: how to know if email message has never been read

Ale Madama 281 Reputation points
2023-02-16T16:24:57.5966667+00:00

I'm struggling to try to know if an email message has ever been read...

I have to use PowerShell

Someone can give me some help?

thanks!

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,720 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,448 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ale Madama 281 Reputation points
    2023-02-16T17:57:08.2066667+00:00

    sorted!

    I have created an Azure App Registration setup with the following API permissions:

    Directory.Read.All
    
    Mail.ReadBasic.All
    

    and then called the function:

    Get-MgMailReadStatus
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.