Restrict Outlook Web Access Based On Hours

Environment:
Active Directory
Exchange 2013 on prem

The goal is:
I would like to restrict certain users from logging into OWA during certain off hours.  Is there a way to do this?

In Active Directory, there is a "Logon Hours" section within every users.  If I restrict login hours, does that apply to Outlook Web Access as well?

Thank you!
zito2000Asked:
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.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
One simple approach will be to just setup a firewall rule for your server.

1) Run a command on the clock to block all access to your server ports at one point in time.

2) Run a command on the clock to delete firewall rule(s) added in #1 at another point in time.
Brian BEE Topic Advisor, Independant Technology ProfessionalCommented:
Yes, Outlook web access still uses AD. So if logon hours are restricted they won't be able to get on.

David's idea would be good to implement as well, better to stop them from even getting to the server if you can.

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
Shreedhar EtteTechnical ManagerCommented:
Yes, Active Directory Login Hours will apply to OWA as well.
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Brian + Shreedhar bring up using Active Directory too.

Whether you use AD or firewall rules will both work.

Using Firewall rules will work independent of any AD problems or maintenance.

Likely using AD will be easier + firewall rules will be a bit more brutal/terse... no indication of why connecting can't occur...
zito2000Author Commented:
Thanks All!

Just tested this and it worked perfectly.
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.