Disabling OWA for each user one at a time is simple but time consuming if your Exchange environment includes hundreds of mailboxes.
Running the below command via Exchange Shell will disable OWA for all users across all CAS servers.
get-casmailbox | set-casmailbox -OWAenabled $false