Exchange Online PowerShell doesn’t expose New-DynamicDistributionGroup

Sergii Machulin 105 Reputation points
2026-11-03T15:09:02.5633333+00:00

I can’t access New-DynamicDistributionGroup in Exchange Online PowerShell.
The term 'New-DynamicDistributionGroup' is not recognized as a name of a cmdlet, function, script file, or executable program.

Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
This reproduces across multiple machines, with PowerShell 7.4.x and 7.6.x and ExchangeOnlineManagement 3.9.2 and 3.10.1.

After connecting with Connect-ExchangeOnline with global admin account, Get-Command DynamicDistributionGroup -All returns Get-DynamicDistributionGroup, Get-DynamicDistributionGroupMember, and Set-DynamicDistributionGroup, but no New-DynamicDistributionGroup. The affected admin account has necessary Exchange Distribution Groups role. Get-ManagementRoleEntry confirms that New-DynamicDistributionGroup is in the Distribution Groups role, and Get-ManagementRoleAssignment -Role 'Distribution Groups' -Delegating:$false -GetEffectiveUsers shows admin account as an enabled effective user through that group, with Organization scope.

The same cmdlet is missing in fresh sessions after reconnecting.

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.


Answer accepted by question author

AI answer

2026-11-03T15:10:08.0233333+00:00

Run Invoke-ProvisioningVerifyRbacDiagnostic against the affected user and New-DynamicDistributionGroup; the cmdlet is supported in Exchange Online, so its absence despite a confirmed effective role assignment indicates that the tenant’s effective RBAC configuration needs targeted validation rather than another module reinstall or reconnect.^1^

$User = '[Email]'

Invoke-ProvisioningVerifyRbacDiagnostic `
    -User $User `
    -CmdletName New-DynamicDistributionGroup

Get-Command New-DynamicDistributionGroup -ErrorAction SilentlyContinue

This diagnostic checks the user’s management roles, assignments, and role groups; detects missing, conflicting, duplicated, or inconsistent RBAC components; and can provide guidance or automated repair when it finds a problem.^2^ It is cloud-only, intended for targeted troubleshooting, and limited to 100 diagnostic calls per organization per hour.^3^

If PowerShell does not expose the diagnostic, run the equivalent in Exchange admin center → Troubleshoot → Diagnostics → Verify RBAC. Select the affected user and specify New-DynamicDistributionGroup.^4^

Compare with a working administrator

If another administrator in the same tenant can see the cmdlet, compare their effective RBAC configuration:

Invoke-ProvisioningVerifyRbacDiagnostic `
    -ReferenceUser '[Email]' `
    -User '[Email]'

The comparison syntax is supported by the same diagnostic and isolates effective-assignment differences that may not be obvious from inspecting the Distribution Groups role alone.^3^

Interpret the result

  • The diagnostic reports and repairs an inconsistency: sign out, establish a new Exchange Online session, and test Get-Command New-DynamicDistributionGroup again. Permission changes take effect after logout and login.^5^
  • It identifies a missing or conflicting assignment: apply the diagnostic’s recommended correction. Modifying role groups requires the Role Management role, assigned to Organization Management by default.^6^
  • It reports correct authorization but the cmdlet remains absent: open a Microsoft 365 support case and include:
    • the diagnostic RunId and complete output;
    • Get-ConnectionInformation;
    • Get-Module ExchangeOnlineManagement | Format-List Name,Version,Path;
    • the output showing the role entry and effective assignment;
    • the output of Get-Command *DynamicDistributionGroup* -All.

Exchange Online uses RBAC to determine which cmdlets are exposed after connection, and role membership normally makes the role’s cmdlets available to the user.^7^ Since you have already reproduced this across machines, module versions, and fresh sessions—and confirmed the role entry, effective user, enabled status, and organization scope—repeating installation or ordinary role-assignment checks is unlikely to discriminate the issue further.


References

  1. New-DynamicDistributionGroup-Description
  2. Diagnostic cmdlets for Exchange Online provisioning issues
  3. Invoke-ProvisioningVerifyRbacDiagnostic-Syntax
  4. Self-help diagnostics for issues in Exchange Online and Outlook
  5. Role assignment policies in Exchange Online
  6. Manage role groups in Exchange Online
  7. Permissions in Exchange Online
AI-generated content may be incorrect. Read our transparency notes for more information.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.