PnpAlertsExport

2.0.1

PnPAlertsExport Module
----------------------
Exports SharePoint Online alert subscriptions to CSV with a rich, guided experience.

Features
• Auto‑register or consume an existing Entra ID App (with interactive wizard or fully scripted).
• Optional parallel processing with configurable throttle limits.
• Secure handling of PFX certificates (path or Base64) and
PnPAlertsExport Module
----------------------
Exports SharePoint Online alert subscriptions to CSV with a rich, guided experience.

Features
• Auto‑register or consume an existing Entra ID App (with interactive wizard or fully scripted).
• Optional parallel processing with configurable throttle limits.
• Secure handling of PFX certificates (path or Base64) and Support for SecureString passwords.
• Verbose/Debug logging, transcript capture, and ContinueOnError for resilient runs.

Examples
   # Interactive registration + full tenant scan
   Export-Alerts -AutoRegister -Mode AllSites -UseParallel -Verbose

   # Non‑interactive, existing app, single site
   Export-Alerts -AppId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx `
                 -Tenant contoso.onmicrosoft.com `
                 -CertificatePath .\certs\alerts.pfx `
                 -CertificatePassword (ConvertTo-SecureString 'p@ssw0rd' -AsPlainText -Force) `
                 -SiteUrl https://contoso.sharepoint.com/sites/HR `
                 -Mode SingleSite `
           

Common Issues
• **Missing PnP.PowerShell v3.1.0** – the module will auto‑install, but ensure you run PowerShell 7+ and have internet access.  
• **Insufficient AAD consent** – Global Admin must grant “Sites.FullControl.All” or similar scopes on Entra application.  
• **Certificate errors** – check that your PFX path is correct and the cert is valid in your tenant.  
• **Throttling/429 Errors** – tune -ThrottleLimit or add retry logic if you encounter service limits.  
Show more

Minimum PowerShell version

7.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PnpAlertsExport

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PnpAlertsExport

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

All rights reserved.

Package Details

Author(s)

  • Sam Larson

Tags

SharePoint PnP Alerts Export AdminCenter

Functions

Export-Alerts

PSEditions

Core Desktop

Dependencies

FileList

Version History

Version Downloads Last updated
2.0.1 (current version) 5 4/20/2025