E
E
EvgeniyKhodos2021-03-26 12:18:10
Mail server
EvgeniyKhodos, 2021-03-26 12:18:10

How to set up forwarding from a number of corporate addresses to addresses in another domain (the names will remain the same)?

Now the users that will need to be redirected are in the same security group in AD. The domain will change to a similar name, in fact it was [email protected], and it will become [email protected]

I saw something similar in How to create mailboxes in bulk and set up redirection for everyone? . But I have a question, how to do this without throwing all the addresses into one OU, namely from the security group. Well, what command, as I understand it, can be done through
Set-Mailbox [email protected] -ForwardingAddress [email protected]
and through
Get-User.

How is it better?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Bezrukov, 2021-03-27
@EvgeniyKhodos

Get-User -Filter {MemberOfGroup -eq } | Set-Mailbox...
So it's not necessary to throw addresses into an OU or a security group - a file with a list of addresses is enough, then you transfer this list by pipeline to Set-Mailbox.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question