How To Disable OWA To All Users Exchange 2010 / 2013

If you need to disable OWA access to all user In your organization In one go or In bulk, you can use Exchange Powershell.

Note: This process will work on Exchange Server 2016.

To disable OWA open Exchange managment Shell (EMS) and type:

Get-Mailbox -ResultSize unlimited |Set-CASMailbox -OWAEnabled $false

To enable it back to all users type:

Get-Mailbox -ResultSize unlimited |Set-CASMailbox -OWAEnabled $true

The change will happen immediately and will be disabled or enabled on all mailboxes.

Success! You're on the list.