Are you getting the same type of errors when connecting via the old, RPS-based method (i.e. Connect-ExchangeOnline -UseRPSSession
). If not, best report this directly to the team at RPSdeprecation at service.microsoft.com
.
PowerShell Script that updates Distribution Groups - JSON error

Patterson, Cody L
0
Reputation points
I have a PowerShell script that updates AAD distribution groups. Periodically, I will get a JSON error when doing the update
Here is the PowerShell command that I'm using. I have checked the IDs that are getting posted and none of them seem to have any incorrect characters in them.
Update-DistributionGroupMember -Identity $dgalias -Members $UserList -Confirm:$false -ErrorAction Stop
I have attached the error as an image as it would not let me paste it in the text field.
{count} votes
1 answer
Sort by: Most helpful
-
Vasil Michev 67,366 Reputation points MVP
2023-02-27T16:41:15.88+00:00