Exchange evaluation with additional parameters | POWERSHELL

Hello Everyone:)

I need a list of mailboxes on my Exchange server that includes:

- DisplayName
- Alias
- Primary SMPT-Address
- Premissions = This is actually the most important part of the evaluation I need

I should also be able to export this to CSV.

Any ideas how to do this in Powershell?
Gian NefAsked:
Who is Participating?
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.

Jose Gabriel Ortega CastroCEO Faru Bonon IT - EE Solution ExpertCommented:
For screen:
get-Mailbox | ft DisplayName,Alias, primarysmtpaddress

Open in new window


#Object (change ft to select)
get-Mailbox | Select DisplayName,Alias, primarysmtpaddress

Open in new window


#Export CSV
get-Mailbox | Select DisplayName,Alias,userprincipalname, primarysmtpaddress | Export-Csv -NoTypeInformation -LiteralPath  "E:\123\file.csv"

Open in new window

Gian NefAuthor Commented:
Thank you for the quick respon.


Is there no way to export the permissions with?

This is actually the most important part of the evaluation I need
Jose Gabriel Ortega CastroCEO Faru Bonon IT - EE Solution ExpertCommented:
What kind of permissions do you neeD?

jose
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Gian NefAuthor Commented:
I need to know who has full access to the appropriate accounts.

Gian
Jose Gabriel Ortega CastroCEO Faru Bonon IT - EE Solution ExpertCommented:
Hi jean there are ways to get that information but is not compatible with the format you want and would require much more work

Get-MailboxPermission  | select identity,AccessRights | where{ $_.AccessRights -eq "FullAccess"}

Open in new window

Gian NefAuthor Commented:
Couldn't you put this command in a loop and then read out the result?
Jose Gabriel Ortega CastroCEO Faru Bonon IT - EE Solution ExpertCommented:
The point is that you need to do a combination of the output from one cmdlet with the other to get what you want.
Gian NefAuthor Commented:
I have solved the problem with this code.
Get-Mailbox | Get-MailboxPermission | Select {$_.AccessRights}, Deny, InheritanceType, User, Identity, IsInherited, IsValid | Export-Csv C:\test_permission.csv

Open in new window


I just have to sort everything a little bit but the result is what I wanted. It may not display the address but the identity and that's enough for the required result:)

Thank you for your support

- Gian

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
Jose Gabriel Ortega CastroCEO Faru Bonon IT - EE Solution ExpertCommented:
Np don't forget to end the question by selecting any useful answer you could have got.
Seth SimmonsSr. Systems AdministratorCommented:
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:
-- Gian Nef (https:#a42531694)
-- Jose Gabriel Ortega C (https:#a42531666)
-- Jose Gabriel Ortega C (https:#a42531644)


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.

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