calendar permissions CSV

pma111 used Ask the Experts™
which is the best way to write a copy of calendar permissions using exchange powershell cmdlets for a maibox, out to csv file for analysis.
By calendar permissions, I mean those which in outlook 2010 > calendar > calendar permissions. It lists a list of accounts I've shared my calendar with, and also some strange entries for "default" and "anonymous", whatever they represent. I need to check for inconsistencies across over 60 calendars which should all be shared in the same way.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
It's worth noting that 'Default' and 'Anonymous' aren't strange. They appear by default as a part of exchange and serve as a 'catchall' for users not explicitly defined in the permissions list.

Give this a shot
$Mailboxes = Get-Mailbox
foreach ($Mailbox in $Mailboxes) {
[indent]Get-MailboxFolderPermission -Identity "$($mailbox.Alias):\calendar" | select *, @{'Name'='Mailbox';'Expression'={$Mailbox.Alias}} | Export-Csv -Append -NoTypeInformation C:\Temp\CalendarPermissions.csv[/indent]

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial