New mailbox Availability only permissions by default

[PS] C:\>Get-MailboxFolderPermission -Identity user@company.com:\calendar

RunspaceId   : 80ee3106-dd23-4db9-8eac-9afbecf4d50e
FolderName   : Calendar
User         : Default
AccessRights : {AvailabilityOnly}
Identity     : Default
IsValid      : True

Company requires users to see each other mailboxes as reviewers.   Like this:

RunspaceId   : 80ee3106-dd23-4db9-8eac-9afbecf4d50e
FolderName   : Calendar
User         : Default
AccessRights : {Reviewer}
Identity     : Default
IsValid      : True

How can I make it by default when creating new users mailbox?
LVL 17
Tiras25Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

suriyaehnopCommented:
Since both are using different cmdlet, you can't accomplish when using Exchange Management Console.
To automate this, you must create a new mailbox using Exchange Powershell script which combination of New-Mailbox and Add-MailboxFolderPermission
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tiras25Author Commented:
Using same EMS shell.  

Can you give me an example or a template?  Thanks!
0
suriyaehnopCommented:
#Import List of Users
$Users = Import-Csv C:\PS\CreateMailbox.csv

#Create a Mail-Enabled User
New-Mailbox -Name $User.name -FirstName $User.firstname -LastName $User.lastname -Alias $User.alias `
-UserPrincipalName ($user.alias +'@domain.com') -Database $GetDatabase -OrganizationalUnit "domain.com\ITOU" `
-Password ( ConvertTo-SecureString P@ssw0rd8 -AsPlainText -Force) -ResetPasswordOnNextLogon:$false `

#Check AD Latency
do
{
 $mailbox = Get-Mailbox -Identity $user.alias -ErrorAction SilentlyContinue 
}
While ($mailbox -eq $null)

$Mailboxes = Get-Mailbox -ResultSize Unlimited | Where { $_.Displayname -ne $User.name }

$Mailboxes | foreach {Add-MailboxFolderPermission -Identity $User.name:\Calendar -User $_.Displayname -AccessRights Reviewer}

Open in new window

0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Tiras25Author Commented:
So this is for either new or existing users?  Each new user I want to put into the .csv file , or put all user into that file and run it.   Right?
0
suriyaehnopCommented:
This is for new user only, I didn't test it out in my environment. The new use is in CSV file and assing the folder permission by

$Mailboxes = Get-Mailbox -ResultSize Unlimited | Where { $_.Displayname -ne $User.name } - get list of mailboxes except the new mailbox just create.

$Mailboxes | foreach {Add-MailboxFolderPermission -Identity $User.name:\Calendar -User $_.Displayname -AccessRights Reviewer} - Assign the Reviewer permission on newly mailbox to all existing mailboxes
0
Tiras25Author Commented:
So each new user I need to put into that CSV file?
0
suriyaehnopCommented:
yes
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.