Exchange Calendar Permissions

Hi All,

I'm tyring to extract all exchange calendar permissions in my exchanges
Can anyone share a script on how to accomplish this?

I was able to get something out from google but the problem is it doesn't have an export option to put it on a text file or CSV file.
the tool i'm referring to has a screenshot in my post.

Looking forward for a script response..

Alfonso IgnacioAsked:
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.

Glenn MSystems Engineer / ManagerCommented:
Get-MailboxFolderPermission -Identity user@domain:\Calendar |fl
Tom CieslikIT EngineerCommented:
I'm not sure how to export it to CSV format because Export-CSV c:\temp\output.csv $Output is not working

But you can get TXT file and Import it to Excel with Delimiter (coma)

$boxen = get-mailbox -Resultsize Unlimited
foreach ($box in $boxen) {
    $addresses = $box.EmailAddresses
    foreach ( $address in $addresses ) {
        [string]$ID = $address.AddressString
        write-host ID1 $ID
        $ID += ":\Calendar"
        $permissions = get-mailboxfolderpermission $ID
        write-host ID: $ID
        foreach ( $perm in $permissions ) {
            $mailbox = $address
            $granteduser = $perm.User
            $access = $perm.AccessRights
            $identity = $perm.Identity
            $valid = $perm.IsValid
            if ( $identity -ne "Anonymous" ) {
                $outstring = "$mailbox,$granteduser,$identity,$access,$valid`n"
                $output += $outstring
                write-host $outstring
set-content C:\temp\out.txt $output

Open in new window

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
Glenn MSystems Engineer / ManagerCommented:
To Export file
Get-MailboxFolderPermission -Identity user@domain.local:\Calendar |fl >C:\temp\Permissions.txt
Get-MailboxFolderPermission -Identity user@domain.local:\Calendar |fl >C:\temp\Permissions.csv
Tom CieslikIT EngineerCommented:
Best solution provided. No more other questions from author
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

From novice to tech pro — start learning today.