Login

 
Registration

If you are not registered:

Register Now

Contact

Please do not hesitate to contact us if you have any queries, or visit our website:

Visit our Website
www.node4.co.uk

Email our helpdesk
info@node4.co.uk
sales@node4.co.uk
support@node4.co.uk

Call us
General enquiries: 0845 123 2222
Support: 0845 123 2229
Fax: 0845 123 2221

N4Status

Node4 status page detailing information about incidents and planned maintenance:

http://www.n4status.co.uk

Knowledgebase
Batch Run Mailbox Folder/Calendar Permission Changes in Exchange (bulk permissions changes)
Posted by Michael Burch on 05 May 2016 05:42 PM

Step 1:

In Exchange Shell run the command - 

Get-MailboxFolderPermission -identity "mailbox.name@domain.com:\calendar"

This will give you a listing of all the permissions on the folder/calendar

Step 2:

Copy and paste in text format into Excel and then strip out what you don't need so you're left with a list of names.

Insert 2 rows at the top and put the title "Mailbox" on the top row

So this:

FolderName User AccessRights
---------- ---- ------------
Calendar Default {Owner}
Calendar Anonymous {None}
Calendar User1 {Reviewer}

Becomes this:

Mailbox

Default
Anonymous
User1

Save the file as list.csv and copy to c:\ on the exchange server in question

Step 3:

In Exchange Shell run the command - 

Import-Csv C:\list.csv | foreach {Set-MailboxFolderPermission -Identity "mailbox.name@domain.com:\calendar" -User $_.Mailbox -AccessRights [insert rights of choice]}

This will then read the list.csv file and apply the permission change to each user in the list

Step 4:

Once you have been returned to the prompt you can run

Get-MailboxFolderPermission -identity "mailbox.name@domain.com:\calendar"

to visually check the permissions have been applied

Notes:

  • There is no output per user when the command is successful, you need to wait until the prompt re-appears to know this has completed (the longer the list of names, the longer the process will take)
  • For each user when no change is required because the user already has that permission level, you will see this message - 

WARNING: The command completed successfully but no permissions of 'mailbox.name@domain.com:\calendar' have been modified.

  • For each user that has no existing permission entry, you will see this message (or equivalent) - 

There is no existing permission entry found for user: User2
+ CategoryInfo : NotSpecified: (:) [Set-MailboxFolderPermission], UserNotFoundInPermissionEntryException
+ FullyQualifiedErrorId : [Server=AM2PR09MB0531,RequestId=33d44a26-ae5d-4ebb-9779-8ee2200401ce,TimeStamp=05/05/2016 15:54:33] [
FailureCategory=Cmdlet-UserNotFoundInPermissionEntryException] 6B3E245,Microsoft.Exchange.Management.StoreTasks.SetMailboxFolde
rPermission
+ PSComputerName : ps.outlook.com

 

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: