users that do not have forwarding enabled in exchange 2010

Hi All
I want to find out all the users that do not have forwarding enabled  in exchange 2010. I also need to know if "deliver message to both forwarding address and mailbox" is ticked. How can i achieve this

I could only find the below
Get-mailbox | select DisplayName,ForwardingAddress | where {$_.ForwardingAddress -ne $Null}

Requesting for assistance
Member_2_6474242Senior Systems AdministratorAsked:
Who is Participating?
 
MAS (MVE)Connect With a Mentor Technical Department HeadCommented:
This will list you the mailboxes which has forwarding enabled and the SMTP address forwarded to. Please try this and let me know.
Get-Mailbox -Filter {ForwardingAddress -ne $null} | foreach {$recipient = $_; $forwardingsmtp = (Get-Recipient $_.ForwardingAddress).PrimarySmtpAddress; Write-Host $recipient.Name, $forwardingsmtp, $recipient.DeliverToMailboxAndForward }

Open in new window


Thanks
MAS
0
 
MAS (MVE)Technical Department HeadCommented:
PLease try this
Get-Mailbox -resultsize unlimited | Where {$_.ForwardingAddress -ne $null} | Select DisplayName, ForwardingAddress, DeliverToMailboxAndForward

Open in new window

3
 
Member_2_6474242Senior Systems AdministratorAuthor Commented:
Please confirm if the above also looks at distribution lists. I ran it on my exchange server but the result was blank
0
Improved Protection from Phishing Attacks

WatchGuard DNSWatch reduces malware infections by detecting and blocking malicious DNS requests, improving your ability to protect employees from phishing attacks. Learn more about our newest service included in Total Security Suite today!

 
Member_2_6474242Senior Systems AdministratorAuthor Commented:
Would it be possible to get forward to as well. The display shows forwarder contact is it possible to get the email address it is being forwarded to
0
 
Todd NelsonSystems EngineerCommented:
Don't forget to check the "ForwardingSmtpAddress" parameter as well.  While the prerequisite to setting the "ForwardingAddress" parameter requires an existing contact, "ForwardingSmtpAddress" does not require a contact.

Personally, I prefer to output the info to a CSV file so I have all the relevant data and then sort as needed.  I suggest this command for you...

Get-Mailbox -ResultSize Unlimited | select DisplayName, ForwardingAddress, ForwardingSmtpAddress, DeliverToMailboxAndForward | Export-Csv -NoType C:\Forwards.csv

Open in new window

0
 
Member_2_6474242Senior Systems AdministratorAuthor Commented:
Hi Todd

Thanks for that. I have ran it on my exchange 2010 server but it does not give the forwarding Address or the forwarding smtp address. please assist
0
 
Todd NelsonSystems EngineerCommented:
Error?  Output?

It would appear that ForwardingAddress and ForwardingSmtpAddress are not available parameters for Get-Mailbox in Exchange 2010.


Maybe MAS has something else to offer.
0
 
Member_2_6474242Senior Systems AdministratorAuthor Commented:
Hi MAS

Please assist
0
 
Member_2_6474242Senior Systems AdministratorAuthor Commented:
Hi MAS

Thanks for your assistance

Please note i get the following for a large number of users

Pipeline not executed because a pipeline is already executing. Pipelines cannot be executed concurrently.
    + CategoryInfo          : OperationStopped: (Microsoft.Power...tHelperRunspace:ExecutionCmdletHelperRunspace) [],
   PSInvalidOperationException
    + FullyQualifiedErrorId : RemotePipelineExecutionFailed

Pipeline not executed because a pipeline is already executing. Pipelines cannot be executed concurrently.
    + CategoryInfo          : OperationStopped: (Microsoft.Power...tHelperRunspace:ExecutionCmdletHelperRunspace) [],
   PSInvalidOperationException
    + FullyQualifiedErrorId : RemotePipelineExecutionFailed
0
 
MAS (MVE)Technical Department HeadCommented:
Did you get a result at the end?
0
 
Member_2_6474242Senior Systems AdministratorAuthor Commented:
Hi MAS

yes i did. i had 92 results but i have more users
0
 
Member_2_6474242Senior Systems AdministratorAuthor Commented:
thanks
0
 
Member_2_6474242Senior Systems AdministratorAuthor Commented:
thanks
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.

All Courses

From novice to tech pro — start learning today.