A parameter cannot be found that matches parameter name 'ForceMembershipRefresh'.

Robert Snook 20 Reputation points
2024-05-08T23:12:03.24+00:00

Trying to refresh DDG per: https://learn.microsoft.com/en-us/exchange/recipients-in-exchange-online/manage-dynamic-distribution-groups/troubleshoot-ddg-membership-issues

I want to force refresh the membership list of a dynamic distribution group

You might want to consider forcing a membership refresh on the DDG if:

  • ...

To perform a refresh, replace DDGIdentity with the name, alias, or email address of the DDG in the following command in Exchange Online PowerShell, and run it:

Set-DynamicDistributionGroup -Identity <DDGIdentity> -ForceMembershipRefresh

Set-DynamicDistributionGroup -Identity "~All Users" -ForceMembershipRefresh

error: Set-DynamicDistributionGroup : A parameter cannot be found that matches parameter name 'ForceMembershipRefresh'

Get-DynamicDistributionGroupMember -Identity "~All Users"

getting the members is successful.

any thoughts?

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,233 questions
{count} votes

Accepted answer
  1. Vasil Michev 96,516 Reputation points MVP
    2024-05-09T07:34:56.9966667+00:00

    Works fine here, make sure you have the necessary permissions to run the cmdlet with said parameter. By default, you need to have the Distribution Groups role assigned to do so. Don't forget to reconnect to PowerShell after any permissions change.

    0 comments No comments

0 additional answers

Sort by: Most helpful