I am configuring SharePoint Server 2013 for Host-Named Site Collections & creating Initial Site Collections.
Created a new Web Application to handle Host-Named Site Collections (HNSC):
i)Created a new IIS web site: (1) Name: SharePoint HNSC Host – 80 (2) Port: 80
ii) Application Pool: (1) Created a new application pool: (2) Application Pool Name: SharePoint Default HNSC AppPool
Created a default, not template site collection at the root of the web application: a) Opened SharePoint 2013 Management Shell:
$hnscWebApp = Get-SPWebApplication | Where-Object {$_.DisplayName -eq "SharePoint HNSC Host - 80"}
New-SPSite -Name "Root HNSC Site Collection" -Url "http://????" -HostHeaderWebApplication $hnscWebApp -OwnerAlias "????\Administrator"
New-SPSite -Name "????" -Url "http://????" –HostHeaderWebApplication $hnscWebApp -Template "STS#0" -OwnerAlias "????\Administrator"
New-SPSite -Name "????" -Url "http://????" –HostHeaderWebApplication $hnscWebApp -Template "DEV#0" -OwnerAlias "????\Administrator"
But I am getting an error message "" New-SPSite: cannot find an SPWebApplication object that contains the following name""
Can someone help me to replace ???? with correct values please?