internal/functions/Resolve-NetBiosName.ps1

123456789101112131415

functionResolve-NetBiosName{<#
.SYNOPSIS
Internal function. Takes a best guess at the NetBIOS name of a server.
#>[CmdletBinding()]param([Parameter(Mandatory)][Alias("ServerInstance","SqlServer")][object]$SqlInstance,[PSCredential]$SqlCredential)$server=Connect-SqlInstance-SqlInstance$SqlInstance-SqlCredential$SqlCredential$server.ComputerName}