February 2013
Intermediate to advanced
304 pages
8h 26m
English
Scenario/Problem: You need to create a new web application.
Solution: Use the New-SPWebApplication cmdlet.
To add a new web application, use the New-SPWebApplication cmdlet, as follows:
New-SPWebApplication -applicationpool <name of new application pool> -name <name of new web app> -applicationpoolaccount <service account tobe used for the application pool> -port <desired port number>
Listing 5.5 shows an example command-line entry for creating the main SharePoint web application.
Listing 5.5. Creating a New Web Application
New-SPWebApplication -applicationpool NewWebApp -name NewWebApp-applicationpoolaccount SP\AppPoolAccount -port 80
This process might take a few minutes. After it completes, the display name ...
Read now
Unlock full access