A
A
AltorEgo2017-08-24 20:31:10
PowerShell
AltorEgo, 2017-08-24 20:31:10

How to create a mail forwarding rule in Microsoft Outlook via PowerShell?

My regards.
Dear specialists, colleagues and just good people, I am an enikey in one company, I deal with users, hardware, administration of servers and computers, etc. The following situation occurred: A user needed to remotely set a rule to forward emails to another user via PowerShell. For a long time I searched for different commands and guides on the Internet, and found the following command:
Set-Mailbox -Identity "Ken Sanchez" -ForwardingSMTPAddress "[email protected]". I did it on the mail server, in place of "Ken Sanchez" put down the user account from whom to redirect, and in place of the address "[email protected]" to whom. I tested it on myself and a colleague, it worked, and the letters started to go as expected. I wanted to return everything back, but now I can not find where this redirection is. Checked on the server, no. Locally on the machine, I checked the user from whom the redirect is going on, too. Through the rule search command, the user via powershell also could not be found. The question is how to find out where this redirection is and remove it? Thank you in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
azarij, 2017-08-24
@AltorEgo

Set-Mailbox -Identity "John Woods" -DeliverToMailboxAndForward $false
should work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question