You can easily do this via PowerShell and the Add-DistributionGroupMember cmdlet. Plenty of code samples are available online, just look them up.
Add and remove user from Outlook Distribution list
Hi,
We have a requirement where we need to have a console application where user id will be passed and that user will be added or removed to the email Distribution list of outlook.
We are the owner of that Distribution list but we dont have access to AD.
Any code?
Outlook Windows Classic Outlook for Windows For business
2 answers
Sort by: Most helpful
-
Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
2021-01-28T13:37:46.837+00:00 -
Jade Liang-MSFT 9,986 Reputation points Microsoft Employee
2021-01-29T02:07:10.863+00:00 Hi @md zakir ,
Welcome to our forum.
Agree with michev, we could use the Add-DistributionGroupMember cmdlet to add a single recipient to distribution groups and use the Remove-DistributionGroupMember cmdlet to remove a single member from distribution groups.For more detailed information, please refer to these articles:
Hope that could be helpful to you.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.