Here is a handy Powershell script I wrote to give Calendar permissions via Powershell. Paste the script into Powershell ISE and play it. We often get requests from PA's and senior staff needing fast access to users calendars this makes short work of it. It will add the exchange snap-in, then prompt you for the users mailbox. Enter the user whose calendar is being granted access to. Then the current calendar permissions will be shown then you will be prompted to enter the user requiring access. Then enter permission level and the script will finally display the permissions after the change. (This is for Exchange 2010 for other versions remove the snapin command from the first line.)
add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010
cls
$user = $null
$user = read-host "Calendar Being Configured"
$user = $user + ":\calendar"
get-mailboxfolderpermission -Identity $user | ft user,accessrights
$Identity = $null
$Identity = read-host "User Being Granted Access"
$AccessRights = $null
$AccessRights = read-host "Access Required - Editor,Owner,Reviewer,Contributor"
Add-MailboxFolderPermission -Identity $User –User $Identity –AccessRights $AccessRights
get-mailboxfolderpermission -Identity $user | ft user,accessrights
No comments:
Post a Comment