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?

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.

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?
timgreen7077Exchange EngineerCommented:
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Se LaiSystem Administrator Author Commented:
I am not sure, but there should be a way to automate the process..
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.
Se LaiSystem Administrator Author Commented:
Can you please share that script?
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.
timgreen7077Exchange EngineerCommented:
Provided answer to author. closing question.
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

From novice to tech pro — start learning today.