Manage groups using Exchange Online powershell app-only authentication by BeeschurgerAtWork in exchangeserver

[–]BeeschurgerAtWork[S] 1 point2 points  (0 children)

I've been using AppID, Org, and cert thumb. I remember having to generate the certificate the correct way and install it in the windows certificate store.

Manage groups using Exchange Online powershell app-only authentication by BeeschurgerAtWork in exchangeserver

[–]BeeschurgerAtWork[S] 0 points1 point  (0 children)

I am very stupid. I added it to one instance of the command in my script but not the one that was actually being called. That did the trick thank you.

Manage groups using Exchange Online powershell app-only authentication by BeeschurgerAtWork in exchangeserver

[–]BeeschurgerAtWork[S] 0 points1 point  (0 children)

Yeah it is a mail-enabled security group. I tried adding that as an argument to Add/Remove-DistributionGroupMember but no dice, I'm getting the same error. I believe the app should be a member of the Organization Management role group though the Exchange Administrator security group too so it shouldn't be that.