I want to change the ForwardingAddress parameter on an Exchange 2007 mailbox to stop forwarding. I want to use the Exchange Management Shell to do this. I know how to do this using the Exchange Management Console, but I would like to be able to issue this command from the shell if possible.
For example I can setup the forward by simply issuing this command in the EMS:
Set-Mailbox -Identity "John Smith" -ForwardingAddress "email@example.com"
I want to do something like:
Set-Mailbox -Identity "John Smith" -ForwardingAddress $none or $false
Set-Mailbox -Identity "John Smith" -RemoveForwardingAddress "firstname.lastname@example.org"
Clearly the last two examples don't work, but I think they give you an idea of what I'm trying to accomplish. I want to issue a command and then have the ForwardingAddress parameter be blank.