Create a Web Application Using PowerShell
Now that you know how to create a web application using the Central Administration GUI, it’s time to learn how to do it from script. Using a script is helpful if you need to create many web applications or regularly re-create them and need to ensure it is done consistently each time.
The PowerShell cmdlet is New-SPWebApplication. The full syntax covers most of the settings presented in Central Administration.
New-SPWebApplication -ApplicationPool <String> -Name <String> [-AdditionalClaimProvider <SPClaimProviderPipeBind[]>] ...
Get SharePoint® 2010 Administration: Instant Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.