SharePoint 2016 Create web application and Site collection using PowerShell

SharePoint 2016 Create web application and Site collection using PowerShell

In this post we will discuss how we can create a web application in SharePoint 2016 using PowerShell, also we will see how we can create a site collection using PowerShell in SharePoint 2016. If you want to try out SharePoint 2016, then you can see the SharePoint 2016 installation steps.

There are various new features in SharePoint 2016, few you can check out here.

Recently after installing SharePoint 2016 in my personal laptop, when I was trying to create a web application using the browser I was getting continuous timeout exception, So before installing SharePoint 2016 make sure to check SharePoint 2016 hardware and software requirements.

So I tried PowerShell to create a web application and site collection.

Below PowerShell command to create web application using PowerShell in SharePoint 2016:

Add-PSSnapin “Microsoft.SharePoint.PowerShell”

$authentication = New-SPAuthenticationProvider -UseWindowsIntegratedAuthentication -DisableKerberos

New-SPWebApplication -Name “My SP2016 Web App” -Port 33779 -ApplicationPool “MySP2016AppPool” -ApplicationPoolAccount (Get-SPManagedAccount “MYSP\Administrator”) -AuthenticationMethod NTLM -AuthenticationProvider $authentication

SharePoint 2016 Create web application and Site collection using PowerShell

SharePoint 2016 Create web application and Site collection using PowerShell

Below PowerShell command to create a site collection using PowerShell in SharePoint 2016:

New-SPSite http://sp2016:33779/ -OwnerAlias “MYSP\Administrator” -Name “My SP2016 Site Collection” -Template “BLANKINTERNET#0”

Add-PSSnapin “Microsoft.SharePoint.PowerShell”


New-SPSite http://sp2016:33779/sites/MySP2016SiteCollection -OwnerAlias “MYSP\Administrator” -Name “My SP2016 Site Collection” -Template “STS#0”

 SharePoint 2016 Create web application and Site collection using PowerShell
SharePoint 2016 Create web application and Site collection using PowerShell

Hope this will be helpful.


You May Also like the Following SharePoint Online Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →