Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

list all mailbox permissions on store

Status
Not open for further replies.

aschwartz71

Technical User
Jun 3, 2006
32
US
Hi. I am trying to do an audit of our mailboxes, we have 2 exchange servers, and I need to know what permissions are given to all mailboxes. I am running the following command:

get-mailbox -server (MBserver) | get-mailboxpermission | ft | Export-Csv c:\export.csv

When I run this for one server, it gives me the correct list, but when I run it on another server, it gives me gibberish, just a TON of lines like this

27c87ef9bbda4f709f6b4002fa4af63c,,,,,

Is there a better way to do this? Thanks
 
When I remove the ft, it comes up as a list, but it does look accurate. The format is not very good though, since it is not in a table format.

if I run with the ft, but do not export, I see the correct results scroll on the screen, but if I pipe it manually using > c:\filename.csv, it comes up truncated with the ... like the display does, it doesnt show all of the info.
 
You can't use FT when exporting to .csv. If you just need specific fields, use select-object (select). ft is for formatting screen output.

Pat Richard MVP
Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.
 
Why not try get-mailbox -server (MBserver) | get-mailboxpermission | FL | Export-Csv c:\export.csv
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top