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

Ale Madama 261 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.
1,006 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
704 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ale Madama 261 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