Outlook Web App mailbox policy

I applied the command to apply default Outlook Web App mailbox Policy to everyone with Get-Mailbox -ResultSize unlimited | Set-CasMailbox -OwaMailboxPolicy "Default" command and it worked. However, while i am creating a new user its not take default policy automatically, we have to add it manually. Is there any way to apply default policy one new accounts automatically while creating?

Regards
Se LaiSystem Administrator Asked:
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.

timgreen7077Exchange EngineerCommented:
If I'm not mistaking, the OWA default policy will have to be applied to each mailbox individually anytime a new mailbox is created. If you ran the cmdlets to apply it to all mailboxes, then just add the process to apply the policy anytime a new mailbox is provisioned. That will keep you from having to run that script against all mailboxes each time. Just apply it during the new mailbox setup.
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
Se LaiSystem Administrator Author Commented:
You mean, we have to apply default policy manually while creating new account?
0
timgreen7077Exchange EngineerCommented:
yes
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Se LaiSystem Administrator Author Commented:
I am not sure, but there should be a way to automate the process..
0
timgreen7077Exchange EngineerCommented:
There is a way using the powershell script you used and you can schedule the task to run nightly. that is the only way. Either add the policy when a new mailbox is created (very very simple), or create a script to run nightly to find all mailboxes that don't have the policy and to apply. those are your options.
0
Se LaiSystem Administrator Author Commented:
Can you please share that script?
0
timgreen7077Exchange EngineerCommented:
The cmdlets you used to apply this to your mailboxes are all you need. Just schedule a windows task so that it will run when you see fit.
you will need to create a ps1 file for the powershell script.
1
timgreen7077Exchange EngineerCommented:
Provided answer to author. closing question.
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.