How to create webapplication in sharepoint using powershell

Advertisement
Using Power Shell we can create the web application easily.
Open the SharePoint Management Shell and run this command

$siteName = "DotnetSharePointSite"

$port = 23456

$url = "http://dotnetsharepoint"

$appPoolName = "DotnetSharePoint- 23456"

$managedAccount = "dotnetsharepoint\lakshmi"

$dbServer = "dotnetsharepoint"

$dbName = "DotNetSharePoint"



New-SPWebApplication -Name $siteName -Port $port  -URL $url -ApplicationPool 

$appPoolName -ApplicationPoolAccount (Get-SPManagedAccount "$managedAccount") 

-DatabaseName $dbName -DatabaseServer $dbServer 

SharePoint Online Real Time Training Contact: JLAKSHMITULASI@GMAIL.COM
Advertisements
SHARE

Lakshmi Tulasi Jasti

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a comment