Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 527
  • Last Modified:

Is there a cmd to run against Resource Objects to pull Calendar Permission?

I need to pull the current Calendar Permission for several resource objects.

Is there a powershell cmd that will target the object name and then dump "Name" & "Permission" to a .cvs file?

Thanks
0
Admin_Stooge
Asked:
Admin_Stooge
1 Solution
 
duraswitchCommented:
run:  get-mailboxfolderpermission <resource alias>:\calendar

This will list the mapi permissions on the calendar folder for the mailbox.  

If you need to get all of them at once, you could use a for each loop.  Something like this should do the trick:  

$resource = get-mailbox -resultsize unlimited | where {$_.isresource -eq $true}
foreach ($result in $resource){write-host "Resource Name: " $result.displayname; Get-MailboxFolderPermission "$($result.alias):\calendar"; write-host "========================================="}

(note: the above should only be two lines, but for some reason the "code" button is greyed out for me so I'm doing this old school)
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now