Create HNSC Web application and top site

posted in: HNSC, PowerShell | 0

PowerShell to create the host named site collection web application and top site

This post is step 1 of two steps to get host named site collections off the ground in your SharePoint.

In this script you need to edit the following variables, and any references to your domain













Essentially, you replace wingtip with your domain name, and .com with your tld if you have a different top level domain

Also pay attention to the service account, that it is the correct name


After you run this you need to run the script to create the host named site collections

The script that creates the new host named site collections can be found at this post.