Jump to content

Recommended Posts

Posted (edited)

Hi,

 

We are on Exchange 2010. I have a user account with a Calendar. I wish to share this with a bulk of people who live in one OU & they all in in there own group. Does anyone know any powershell code to do this please?

 

I do not wish to go down the public folders route please.

 

Thanks

Edited by FN-GM
Posted
Is it possible to do it without logging in. And also possible to make it so the user at the other end cant reject the request please?
Posted (edited)

If they are already in a distribution group you could use this, alter it as necessary:

 

 

#Variables

$group = "dist group name" #distribution group containing members that need access

$target = "user.name" + ":\calendar" #user's folder to be granted permissions over

$rights = "reviewer" #permissions to be granted

 

#Code

$members = Get-distributiongroupMember $group

 

$members | ForEach-Object {add-MailboxFolderPermission -Identity $target -user $_.name -accessRights $rights}

 

or if they are all members of a security group change the code to this:

 

 

$members = Get-ADGroupMember $group

 

$members | ForEach-Object {add-MailboxFolderPermission -Identity $target -user $_.SAMAccountName -accessRights $rights}

 

 

Personally I'd add a group and add users to that instead of individual users to the calendar then it can be updated easily through AD when required

Edited by old_n07
Posted

With cloud Exchange 2K10 I just give the security group permission and it apparently works fine (no users have scwtheamed) e.g.

 

Add-MailboxFolderPermission -Identity SomeUser:\Calendar -User SomeGroup -AccessRights Reviewer

 

Members of SomeGroup now have Reviewer access to SomeUser's calendar.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...