Hi
We have updated the code internally so that back host connections are added rather than the loopback check so that our servers remain secure.
```
#Region Configure Back Host Connections
# ===================================================================================
# Func: ConfigBackHostConnections
# Desc: Disable Loopback Check for Specified Host Names
# ===================================================================================
Function ConfigBackHostConnections([xml]$xmlinput)
{
# Disable the Loopback Check on stand alone demo servers.
# This setting usually kicks out a 401 error when you try to navigate to sites that resolve to a loopback address e.g. 127.0.0.1
If ($xmlinput.Configuration.Install.Disable.BackHostConnectionsCheck -eq $true)
{
WriteLine
Write-Host -ForegroundColor White " - Adding Registry Key to Disable Strict Name Checking"
$lsaPath = "HKLM:\System\CurrentControlSet\services\LanmanServer\Parameters"
$lsaPathValue = Get-ItemProperty -path $lsaPath
If (-not ($lsaPathValue.DisableStrictNameChecking -eq "1"))
{
New-ItemProperty HKLM:\System\CurrentControlSet\services\LanmanServer\Parameters -Name "DisableStrictNameChecking" -value "1" -PropertyType dword -Force | Out-Null
}
Write-Host -ForegroundColor White " - Adding Back Host Names..."
ForEach ($webApp in $xmlinput.Configuration.WebApplications.WebApplication)
{
ConfigBackHostRegValues $webApp
}
WriteLine
}
}
# Configure the Registry Entries per Web Application for above
Function ConfigBackHostRegValues([System.Xml.XmlElement]$webApp)
{
$webAppName = $webApp.name
$url = $webApp.url
$port = $webApp.port
$fullurl = $url + ":" + $port
Write-Host -ForegroundColor White " - Adding " $fullurl
$dynamiccurentvalue = (Get-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa\MSV1_0 -Name "BackConnectionHostNames" -ErrorAction SilentlyContinue).BackConnectionHostNames
$currentvalue = $fullurl + [System.Convert]::ToChar(13) + [System.Convert]::ToChar(10) + $dynamiccurentvalue
New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa\MSV1_0 -Name "BackConnectionHostNames" -value $currentvalue -PropertyType multistring -Force | Out-Null
# }
}
#EndRegion
```
We have updated the code internally so that back host connections are added rather than the loopback check so that our servers remain secure.
```
#Region Configure Back Host Connections
# ===================================================================================
# Func: ConfigBackHostConnections
# Desc: Disable Loopback Check for Specified Host Names
# ===================================================================================
Function ConfigBackHostConnections([xml]$xmlinput)
{
# Disable the Loopback Check on stand alone demo servers.
# This setting usually kicks out a 401 error when you try to navigate to sites that resolve to a loopback address e.g. 127.0.0.1
If ($xmlinput.Configuration.Install.Disable.BackHostConnectionsCheck -eq $true)
{
WriteLine
Write-Host -ForegroundColor White " - Adding Registry Key to Disable Strict Name Checking"
$lsaPath = "HKLM:\System\CurrentControlSet\services\LanmanServer\Parameters"
$lsaPathValue = Get-ItemProperty -path $lsaPath
If (-not ($lsaPathValue.DisableStrictNameChecking -eq "1"))
{
New-ItemProperty HKLM:\System\CurrentControlSet\services\LanmanServer\Parameters -Name "DisableStrictNameChecking" -value "1" -PropertyType dword -Force | Out-Null
}
Write-Host -ForegroundColor White " - Adding Back Host Names..."
ForEach ($webApp in $xmlinput.Configuration.WebApplications.WebApplication)
{
ConfigBackHostRegValues $webApp
}
WriteLine
}
}
# Configure the Registry Entries per Web Application for above
Function ConfigBackHostRegValues([System.Xml.XmlElement]$webApp)
{
$webAppName = $webApp.name
$url = $webApp.url
$port = $webApp.port
$fullurl = $url + ":" + $port
Write-Host -ForegroundColor White " - Adding " $fullurl
$dynamiccurentvalue = (Get-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa\MSV1_0 -Name "BackConnectionHostNames" -ErrorAction SilentlyContinue).BackConnectionHostNames
$currentvalue = $fullurl + [System.Convert]::ToChar(13) + [System.Convert]::ToChar(10) + $dynamiccurentvalue
New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa\MSV1_0 -Name "BackConnectionHostNames" -value $currentvalue -PropertyType multistring -Force | Out-Null
# }
}
#EndRegion
```