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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MAS (MVE)EE Solution Guide - Technical Dept 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
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
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

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
MAS (MVE)EE Solution Guide - Technical Dept 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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)EE Solution Guide - Technical Dept 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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.