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:
$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
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”
New-SPSite http://sp2016:33779/sites/MySP2016SiteCollection -OwnerAlias “MYSP\Administrator” -Name “My SP2016 Site Collection” -Template “STS#0”
Hope this will be helpful.
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.
You May Also like the Following SharePoint Online Tutorials: