File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
source/internal/functions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -275,14 +275,14 @@ function NewGet-AllInstanceInfo {
275
275
}
276
276
' InstanceConnection' {
277
277
# local is always NTLM except when its a container ;-)
278
- if ($Instance.NetBiosName -eq $ENV: COMPUTERNAME -and ($instance.Name -notlike ' *,*' )) {
278
+ if ($Instance.ComputerNamePhysicalNetBIOS -eq $ENV: COMPUTERNAME -and ($instance.Name -notlike ' *,*' )) {
279
+ $authscheme = ' skipped-local'
280
+ } else {
279
281
if (-not (($__dbcconfig | Where-Object { $_.Name -eq ' skip.connection.auth' }).Value)) {
280
282
$authscheme = $instance.Query (" Select auth_scheme as AuthScheme FROM sys.dm_exec_connections WHERE session_id = @@SPID" ).AuthScheme
281
283
} else {
282
284
$authscheme = ' skipped'
283
285
}
284
- } else {
285
- $authscheme = ' skipped-local'
286
286
}
287
287
288
288
if (-not (($__dbcconfig | Where-Object { $_.Name -eq ' skip.connection.ping' }).Value)) {
You can’t perform that action at this time.
0 commit comments