Project Owner: Jannos-443
PRTG Powershell Script to monitor Microsoft 365 QuarantineMessages
I use this Script to safe me the daily check for false positives
Free and open source: MIT License
Features
- Monitor QuarantineMessages
- Create Azure AD Application and Assign Exchange.ManageAsApp Permission
- Add Application to Global Readers Azure AD Role
- Guide: Microsoft Exchange App Only Auth Powershell
-
Place
PRTG-M365-QuarantineMessages.ps1
underC:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML
-
Place your Self-Signed Certificate on the PRTG Server(s) or Import it into Cert Store
- Placed in file Structure = -CertificateFilePath 'C:\YourPathToCert\Cert.pfx' -CertificatePassword 'YourSelfSignedCertPassword'
- Imported into Cert Store = -CertificateThumbPrint 'YourSelfSignedCertThumbPrint'
-CertificateFilePath 'C:\YourPathToCert\Cert.pfx' -CertificatePassword 'YourSelfSignedCertPassword' -ApplicationID 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' -TenatDomainName 'contoso.onmicrosoft.com'
Using Self Signed Certificate in placed on PRTG Server(s)
-CertificateThumbPrint 'YourSelfSignedCertThumbPrint' -ApplicationID 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' -TenatDomainName 'contoso.onmicrosoft.com'
Using Self Signed Certificate imported in Cert Store