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
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.
2 answers
Sort by: Most helpful
-
Vasil Michev 95,666 Reputation points MVP
2023-02-27T16:41:15.88+00:00 -
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more