We help IT Professionals succeed at work.

How to undo Set-Mailbox -Identity Command

Hello World,

How does one undo the following command in Exchange Management Console:

Set-Mailbox -Identity John -DeliverToMailboxAndForward $true -ForwardingSMTPAddress manuel@contoso.com

I found it on this page: https://technet.microsoft.com/en-us/library/bb123981(v=exchg.150).aspx

I was hoping to CLI it like in Cisco. Apparently, its not as easy.

Appreciate the help in advance.

Thanks !
Comment
Watch Question

Dan ArseneauDevOps Engineer

Commented:
set-mailbox John -DeliverToMailboxAndForward $false

Open in new window

Author

Commented:
No, that's not correct.

It will not deliver to the mailbox but continue forwarding.

I'd like for it to deliver mail normally but not forward.
DevOps Engineer
Commented:
set-mailbox John -DeliverToMailboxAndForward $false -ForwardingAddress $null

Open in new window


Sorry for the missed $null.
Please see below url very well define .. Including how to set forwarding  & check status as well.

http://exchangeserverpro.com/exchange-server-2007-mailbox-forwarding/
Viral RathodConsultant

Commented:
Turn off Email Automatic Forwarding to internal Recipient

Set-Mailbox John  -ForwardingAddress $Null

Turn off email Automatic Forwarding to External Recipient

Set-Mailbox <Identity>  -ForwardingSmtpAddress $Null