Redirect email from one User to another User in the same Exchange 2010 organization hosting

Hello friends.

A customer asked me now to do the following:

He wants some emails within his organization, also go to the email the Administrator, within the exchange that the console is very simple to do, but now the exchange mode is hosting and everything in powershell is that it complicates the commands are not equal the traditional exchange, it seems that we have to inform the organization before, so he'll find the User.

So I believe the command to something like this here:


Set-Mailbox –Organization “domainclient.com.br” | -ForwardingAddress "Administrator" -DeliverToMailboxAndForward $true -Identity "user"

Powershell but returns this error:

[PS] C:\>Set-Mailbox -Organization "domainclient.com.br" | -ForwardingAddress "Administrator" -DeliverToMailboxAndForward $t
rue -Identity "user"
O termo '-ForwardingAddress' não é reconhecido como nome de cmdlet, função, arquivo de script ou programa operável. Ver
ifique a grafia do nome ou, se um caminho tiver sido incluído, veja se o caminho está correto e tente novamente.
Em linha:1 caractere:71
+ Set-Mailbox -Organization "domainclient.com.br" | -ForwardingAddress <<<<  "Administrator" -DeliverToMailboxAndForward $t
rue -Identity "user"
    + CategoryInfo          : ObjectNotFound: (-ForwardingAddress:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

[PS] C:\>


Helpme, please ?

welltecnologiaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AkhaterCommented:
Set-mailbox -identity "User" –Organization “domainclient.com.br” -ForwardingAddress "Administrator@domainclient.com.br" -DeliverToMailboxAndForward:$true
0
welltecnologiaAuthor Commented:


Hello Akather

I ran the command, but it seems that the error in interpretation of a part -Organization, see:


[PS] C:\>Set-mailbox -identity "user" -Organization "domainclient.com.br" -ForwardingAddress "Administrator@domainclient.com.br" -DeliverToMailboxAndForward:$true

Não é possível localizar um parâmetro posicional que aceite o argumento '-Organization'.
    + CategoryInfo          : InvalidArgument: (:) [Set-Mailbox], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Set-Mailbox

[PS] C:\>
0
AkhaterCommented:
right you are try this

get-mailbox -Organization "domainclient.com.br" | Set-mailbox -ForwardingAddress "Administrator@domainclient.com.br" -DeliverToMailboxAndForward:$true
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

welltecnologiaAuthor Commented:
this command but i do not point the User's account.
0
AkhaterCommented:
sorry again !

did you ran that last command ? it would forward all mailboxes of the org to the administrator mailbox

get-mailbox -identity "user" -Organization "domainclient.com.br" | Set-mailbox -ForwardingAddress "Administrator@domainclient.com.br" -DeliverToMailboxAndForward:$true
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
welltecnologiaAuthor Commented:

Akhater You see, the command worked but this:

get-mailbox -Organization "domainclient.com.br" -identity "user" | Set-mailbox -ForwardingAddress "Administrator@domainclient.com.br" -DeliverToMailboxAndForward:$true

But now tell me, how do I remove this rule?
0
AkhaterCommented:
what do you mean by "the command worked but this:" ??? this is the command i gave you

and what you mean by remove ? you mean disable forwarding ?



get-mailbox -Organization "domainclient.com.br" -identity "user" | Set-mailbox -ForwardingAddress:$null
0
welltecnologiaAuthor Commented:
The commands are different, which you sent me is like this:

get-mailbox -identity "user" -Organization "domainclient.com.br" | Set-mailbox -ForwardingAddress "Administrator@domainclient.com.br" -DeliverToMailboxAndForward:$true

I tried and gave error, so I tried using the command like this here:

get-mailbox -Organization "domainclient.com.br" -identity "user" | Set-mailbox -ForwardingAddress "Administrator@domainclient.com.br" -DeliverToMailboxAndForward:$true

It worked perfectly!

Even to remove the rule, if the customer asks to remove.

Again Congratulations to you all, without you could never solve the problem of my client.

I am very grateful and very happy with the service of you.

thanks Akhater !
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.