How to change users domain name in distribution group?

Tamerlan Imanov 1 Reputation point
2022-02-04T11:41:04.443+00:00

I am trying to change users domain name in distribution group.

F.ex I have a distribution group namely: MyGroup and email address there timanov@keyman .com and many other users also in this distribution group.

How to change domain name from domain.com to mydomain.com for all users.

Maybe there is an option using script in powershell or something like that?

Please assist.

Best regards,
Tamerlan.

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,843 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,362 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 44,776 Reputation points
    2022-02-04T15:44:46.707+00:00

    The membership of a group is composed of distinguishedNames, not e-mail addresses. If you want timanov@keyman .com (a user) to use a different e-mail address then change that user's primary SMTP address. The same would be true for ALL the members of the DL if you want them to use a different SMTP address when sending an e-mail.

    In other words, the distribution group doesn't care what a member's e-mail address is because that information will be retrieved from the object whose distinguishedName is found in the members property of the DL.

    0 comments No comments