Exchange Powershell getting the forward email address for mailboxes

Not open for further replies.



I am just a beginner to powershell and I don't know how to do this. What I want is the following: I want to create a list of user mailboxes who have configured an e-mail forward. And now comes the problem I want to add the forward address to it.

Using this command: " get-mailbox | Where-Object { $_.ForwardingAddress -ne $null } | select Name, ForwardingAddress" I can find the mailboxes where a forward for is configured and even the contact name that is used.

Using this command: " Get-Contact |ft WindowsEmailAddress,Identity" I can get the contacts and the email addresses used.

But now I would like to combine these 2 command to create 1 output file.
And if I see it right the get-mailbox ForwardingAddress and Get-Contact Identity can be the combined.

Hope someone can help me

Regards Ronny


I think this will work:

$fwds = get-mailbox | Where-Object { $_.ForwardingAddress -ne $null } | select Name, ForwardingAddress

foreach ($fwd in $fwds) {$fwd | add-member -membertype noteproperty -name " ContactAddress" -value (get-contact $fwd.ForwardingAddress).WindowsEmailAddress}


[string](0..33|%{[char][int](46+(" 686552495351636652556262185355647068516270555358646562655775 0645570" ).substring(($_*2),2))})-replace " "
Not open for further replies.
Thread starter Similar threads Forum Replies Date
Diane Poremsky Use PowerShell to log into Office 365 Exchange New Articles 0
R Exchange - Locating a user that has log files but is not found using powershell Exchange Server Administration 1
Britonius Exchange Powershell to Remove Reviewer access from all Folders in a mailbox? Using Outlook 3
I Exchange 2010 Powershell Exchange Server Administration 1
B Create Exchange PowerShell Virtual Directpory Exchange Server Administration 3
à owa and powershell take times on exchange 2010 Exchange Server Administration 8
S EMC, EMS & Powershell issues. Cannot manage Exchange 2010 after install Exchange Server Administration 4
N Failed Exchange 2010 SP1 Installation PowerShell "unauthorized operation" Exchange Server Administration 2
C ClamAgent free antivirus for exchange help with JS in Powershell 2.0 Exchange Server Administration 1
S Determine Managed Folder Policy for Mailbox in Powershell Exchange 2010 SP1 Exchange Server Administration 4
W PowerShell Help in Exchange 2010 Exchange Server Administration 14
R Exchange 2010 Sp1 install -> broken OWA -> broken powershell -> broken exchange managemen Exchange Server Administration 2
J Exchange 2010 SP1 mailbox role install failure PowerShell virtual directory Exchange Server Administration 5
B Exchange 2010 Management Powershell missing after installing SP1 Exchange Server Administration 4
N Backing Up Exchange Calendar Using Outlook 13
A Ol16 desktopT suddenly can't connect with Exchange Using accounts in Outlook 5
T How can Exchange be configured to sync/push one-way so that the server data can't be affected Exchange Server Administration 0
E How to display "Change Folder" in Change Default Email Delivery Location in Exchange Outlook 2016 Using Outlook 1
J Outlook 2016 Moving IMAP emails to Exchange Using Outlook 1
L How to Import Exchange OST file into Outlook? Using Outlook 3
O Outlook 365 Exchange .ost within Personal Vaul Using Outlook 0
D Outlook 2016 Migrate 'On My Computer' (local storage) Calendar from Mac Outlook to Exchange Account Using Outlook 5
A .restrict results changing after moving to Exchange online Outlook VBA and Custom Forms 0
D Can Exchange Admin Center create a pst for users email/contacts/calendar? Exchange Server Administration 0
S Messages moved / deleted by auto-archive are not synchronized to exchange Exchange Server Administration 8
llama_thumper Setting up forwarders on Exchange server Exchange Server Administration 0
D Importing Outlook Categories from another domain (Exchange 2016/Outlook 2016) Using Outlook 4
M WMI query for Get Disk IO performance in exchange Exchange Server Administration 0
B Outlook 2013/Exchange 2013 - Conf Rooms not fully booking "resolved conflict" meetings Using Outlook 3
D Adding Enterprise Exchange Email Account to Outlook Prevents Sending via Account Using accounts in Outlook 10
O Benefits of Exchange over IMAP and why would I choose Exchange? Using Outlook 2
F Delete/create/reset Exchange mailbox on Using accounts in Outlook 3
A Prevent connection to Public Folders on Exchange? Exchange Server Administration 3
S Add Exchange Account as Secondary to Existing PST? Exchange Server Administration 1
S Adding new Exchange (2016) rule very slow down Microsoft Outlook Exchange Server Administration 0
CWM030 A quick question for Diane about Exchange Exchange Server Administration 2
G How to have domain client use owa server instead of exchange server while connect to network Using Outlook 1
J Outlook 2016 message content does not display -; exchange Using accounts in Outlook 9
C Filter/Search emails sent to internal Exchange address only Using Outlook 2
B Copy/Move Exchange inbox to Pop inbox Using Outlook 4
Fozzie Bear Correct Method to set up accounts as Exchange Using accounts in Outlook 7
P AutoArchive exchange folder to exchange folder Using Outlook 1
J Syncing notes between Outlook 2016/Exchange and Outlook for Android Using Outlook 2
Brian Murphy Exchange Online Everything a Transport Rule should do and cannot Exchange Server Administration 1
E Customer wants a portion of GAL from exchange to sync down to Android contacts via Activesync Using Outlook 2
R Problem with searching public folders Exchange 2013/16 Exchange Server Administration 2
I outlook 2016 manual exchange config Using Outlook 0
R Add Exchange Account to existing POP3 Outlook 2007 Profile Using Outlook 0
Fozzie Bear Office 365 Home Premium with Exchange Online email accounts Using Outlook 3
Similar threads