Avatar of makel2
makel2
Flag for Ireland asked on

Need to Set Default Calendar Permissions for users in Exchange Server 2010

Hi,

I  need to set default calendar permissions for all users in the New York Office to "Reviewer".  All User Active Directory Objects have the Office attribute populated with the location "New York". Also how do I get a report that show's that this has been changed for the New York users. I'm using Exchange Server 2010 and PowerShell needs to be used
PowershellMicrosoft OfficeExchangeActive Directory

Avatar of undefined
Last Comment
Jason Crawford

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Alex

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Alex

Sorry

$users = get-content C:\temp\users.txt
Foreach ($User in $Users){
set-mailboxfolderpermission -identity $user:\calendar -User Default -AccessRights Reviewer}

It's a \ not a /
makel2

ASKER
Thanks is there any PowerShell command that can be used to confirm what Default Calendar permissions they currently have set at the moment?
SOLUTION
Alex

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
makel2

ASKER
Hi,

I was able to generate the users.txt using powershell however when I went to set the permissions in Exchange Server 2010 I got the error message attached.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
SOLUTION
Alex

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Alex

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Alex

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
makel2

ASKER
Hi,

I tried all that and got the error message attached.

User1
User2
Edit: I correct it but still getting an error message

User3
User4
Jason Crawford

Try this in Exchange Management Shell:

Import-Module activedirectory

foreach ($user in (Get-ADUser -Filter {Office -eq 'New York'})) {
  Set-MailboxFolderPermission "$($user.samaccountname):\calendar" -User Default -AccessRights Reviewer
}

Open in new window

Edit: enclosed "$($user.samaccountname):\calendar" in quotes
Jason Crawford

Note you should not be using PowerShell ISE with this script unless you load the Exchange module first.  You have to use Exchange Management Shell.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.