Create Web Application by using Powershell

Leave a Comment
Hi All,

In following post we see discuss how to create web application by using the Power Shell.

Step 1:

Open Management Shell as an Administrator.

Step 2:

Execute below Command

Syntax :

New-SPWebApplication -Name "WebApplicationName" -Port "WebPort" -Url "WebApplicationUrl" -ApplicationPool "ApplicationPoolName" -ApplicationPoolAccount "ManagedAccountName" -DatabaseName "DatabaseName" -DatabaseServer "DatabaseServer"

Example:

New-SPWebApplication -Name "Sample WebApp Name" -Port "1947" -Url "http://ingns-sp" -ApplicationPool "Sample WebApp Pool" -ApplicationPoolAccount "dns\admin" -DatabaseName "WSS_Content1947" -DatabaseServer "ingns-server"


Note: Change the values as per your farm.



Related Post

0 comments:

Post a Comment