Documents‎ > ‎2. Using‎ > ‎

Host-Named Site Collection (HNSC) Configuration

Note: This feature is not completely tested so make sure you have evaluated it with the trial version to see if it works in your environment or not.

You can configure HNSC for SharePoint Live Authentication via SharePoint PowerShell script.
After configuring Shetab Live Authentication on the root site of your SharePoint Web Application, run the following SharePoint PowerShell script:

$realm = "​http://myhnsc.mydomain.com/_trust/default.aspx"
$uri = new-object System.Uri("​​http://myhnsc.mydomain.com")
$ap 
= Get-SPTrustedIdentityTokenIssuer ​("ShetabLiveAuth​"​)​
$ap
.​​ProviderRealms.Add($uri, $realm)
$ap
.Update()

Note: You should always set "$uri" to Root Site Collection, which is used to apply the modifications on SharePoint Objects.