Forum Discussion

Ruben Kertesz's avatar
Ruben Kertesz
Iron Contributor
May 02, 2018
Solved

Is there a PowerShell Script to bulk unsubscribe members' inboxes from group?

Someone setup a group with "Send all group conversations and events to members' inboxes" and then added many members. Now everyone is getting notifications when someone makes a comment in the planne...
  • VasilMichev's avatar
    May 03, 2018

    Yes, simply use the Get-UnifiedGroupLinks to get the list of subscribers, then remove them via Remove-UnifiedGroupLinks. Quick example:

     

    Get-UnifiedGroupLinks groupname -LinkType subscriber | % { Remove-UnifiedGroupLinks groupname -Links $_.PrimarySmtpAddress -LinkType subscriber }

     

    Of course if you are running this against a big number of users, test it first or better yet, use a proper script instead of a one-liner.

Resources