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 :
Example:
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"
0 comments:
Post a Comment