Commit 295c2b0
Find-DbaInstance - Fix TcpConnected false for default instances
When Browser scan type is used, default SQL Server instances do not
report a TCPPort via Browser UDP (clients are expected to use 1433).
On SQL Server 2022+ where the Browser service is deprecated, no ports
are returned at all.
Both cases caused TcpConnected to remain false even when the instance
was reachable over TCP.
Fix:
1. After Browser scan, fall back to testing default TCP port(s) if
Browser returned no port info (covers deprecated/absent Browser).
2. When BrowseReply exists but has no TCPPort (default instance),
set TcpConnected/Port from any open port found in PortsScanned.
Fixes #10322
Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>1 parent 8987045 commit 295c2b0
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
358 | 364 | | |
359 | 365 | | |
360 | 366 | | |
| |||
453 | 459 | | |
454 | 460 | | |
455 | 461 | | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
456 | 469 | | |
457 | 470 | | |
458 | 471 | | |
| |||
0 commit comments