Export unread Office 365 Emails

Finally found and made some adjustments to a Powershell script that checks the number of unread emails from mailboxes in Office 365 / Exchange Online.

And for this to run correctly and scheduled on a Windows box you have to first start these 2 lines with a service account so that you dont fill in the password in the scriptfile.
$UserCredential = Get-Credential
$UserCredential.Password | ConvertFrom-SecureString | Set-Content C:\Temp\scriptsencrypted_password1.txt

If you need more info let me know.

Powershell script:
https://1drv.ms/t/s!Audb13lmZhZosgEauNWqq49QsJ_z?e=tAGwXV

Requirements:
Powershell
Microsoft Exchange Web Services Managed API 2.2
Perseverance (If this script doesnt work the way you want 😉

URL source where I found the original script:
https://stackoverflow.com/questions/42240798/office-365-unread-email-powershell-admin-report

 

 

Leave a comment