• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 40
  • Last Modified:

power shell command to get Forward SMTP in On Premises Exchange Mailbox

the command
Get-Mailbox -Identity [user]| FL ForwardingSMTPAddress
gives the AD Object has the  Forward SMTP

need a command gives Forward SMTP itself (the mail address of the forwarding Address) of On Premises Exchanger Mailbox

thanks
0
UE2016
Asked:
UE2016
2 Solutions
 
Jason CrawfordTransport NinjaCommented:
Two kinds of forwarding can be configured on the server level - ForwardingSmtpAddress and ForwardingAddress.  You can learn the difference here - https://blogs.technet.microsoft.com/timmcmic/2015/06/08/exchange-and-office-365-mail-forwarding-2/

Get-Mailbox <identity> | Select-Object ForwardingSmtpAddress,ForwardingAddress

Open in new window

0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
What you state in your question cannot be correct. As the above link tells, ForwardingSMTPAddress is a SMTP address (just a string). What you describe as having seen however is the AD object, which is ForwardingAddress.
The former can be set by users, the latter only by an administrator.

I'll assume you mean ForwardingAddress, then you would have to get that from the AD object:
(get-ADUser (get-mailbox  -Identity [user]).ForwardingAddress.DistinguishedName -property EMailAddress).EmailAddress

Open in new window

0
 
PberSolutions ArchitectCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Split:
-- Qlemo (https:#a42417706)
-- Jason Crawford (https:#a42417679)


If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Pber
Experts-Exchange Cleanup Volunteer
0
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.

Join & Write a Comment

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Tackle projects and never again get stuck behind a technical roadblock.
Join Now