Skip to main content

More examples

Practical recipes that show common ways to use Nebula.Core.

Connect EXO and Graph in one call

Connect-Nebula -GraphScopes 'User.Read.All','Directory.Read.All' -AutoInstall

Reload configuration after updating PSD1 files

Sync-NebulaConfig

Export all licenses to CSV with a fresh catalog

Export-MsolAccountSku -CsvFolder 'C:\Reports\Licenses' -ForceLicenseCatalogRefresh

Review quarantine and release via grid

Get-QuarantineToRelease -Interval 7 -GridView -ReleaseSelected -ReportFalsePositive

Create a ready-to-use shared mailbox

New-SharedMailbox -Name "Support" -Alias support `
-PrimarySmtpAddress "support@contoso.com" `
-Members 'agent1@contoso.com','agent2@contoso.com' `
-Language it-IT -TimeZone "W. Europe Standard Time"

Set language and time zone on an existing mailbox

Set-MboxLanguage -UserPrincipalName 'user@contoso.com' -Language en-US -TimeZone "W. Europe Standard Time"

Export mailbox statistics (CSV, batched)

Export-MboxStatistics -CsvFolder 'C:\Reports\Mailboxes' -Round -BatchSize 50

Export DG and M365 groups with members

Export-DistributionGroups -CsvFolder 'C:\Reports\DGs'
Export-M365Group -CsvFolder 'C:\Reports\M365'

Normalize MessageIds from clipboard and release immediately

Format-MessageIDsFromClipboard   # formats, releases, and shows output