这是第N+1种方法禁用Loopback Check:
Write-Host "- Disabling Loopback Check ..."
$LsaPath = "HKLM:\System\CurrentControlSet\Control\Lsa"
$LsaPathValue = Get-ItemProperty -path $LsaPath
New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -value "1" -PropertyType dword -Force | Out-Null
如果对于生产环境,可以参考:Groundhog Day: Configuring Back Connection Host Names using Group Policy