I am trying to get a report piped to a CSV for all USER mailboxes that have MAPI disabled. I have tried the following but the results are not correct.
Get-CASMailbox | select DisplayName, MapiEnabled | Export-csv C:\permissions.csv
Also this pops up.
WARNING: By default, only the first 1000 items are returned. Use the ResultSize parameter to specify the number of
items returned. To return all items, specify "-ResultSize Unlimited". Be aware that, depending on the actual number of
items, returning all items can take a long time and consume a large amount of memory. Also, we don't recommend storing
the results in a variable. Instead, pipe the results to another task or script to perform batch changes.