In this article, I’ll show you how to enable the Anonymous Access settings of a Web Application without going to the Central Administration page. Users only need input the URL and press Enter.
Contents of script: Download AnonymousWebApplication.ps1 file
This is an example on my web application:
Go to Central Admin to check Anonymous Access section; make sure the Enable Anonymous Access checkbox is selected as pictured below.