Get‑SqlDscServerProtocolName - dsccommunity/SqlServerDsc GitHub Wiki
Returns SQL Server protocol name mappings.
Get-SqlDscServerProtocolName [-All] [<CommonParameters>]
Get-SqlDscServerProtocolName -ProtocolName <String> [<CommonParameters>]
Get-SqlDscServerProtocolName -DisplayName <String> [<CommonParameters>]
Get-SqlDscServerProtocolName -ShortName <String> [<CommonParameters>]
Returns SQL Server protocol name mappings including the protocol name, display name, and short name. This command provides standardized protocol naming across different SQL Server management interfaces.
Get-SqlDscServerProtocolName -ProtocolName 'TcpIp'
Returns the protocol name mapping for TCP/IP protocol.
Get-SqlDscServerProtocolName -DisplayName 'Named Pipes'
Returns the protocol name mapping for Named Pipes protocol using its display name.
Get-SqlDscServerProtocolName -ShortName 'Sm'
Returns the protocol name mapping for Shared Memory protocol using its short name.
Get-SqlDscServerProtocolName -All
Returns all available protocol name mappings.
Returns all available protocol name mappings.
Type: SwitchParameter
Parameter Sets: All
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Specifies the protocol display name as shown in SQL Server Configuration Manager. Valid values are 'TCP/IP', 'Named Pipes', and 'Shared Memory'.
Type: String
Parameter Sets: ByDisplayName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the protocol name using the ServerProtocols enumeration. Valid values are 'TcpIp', 'NamedPipes', and 'SharedMemory'.
Type: String
Parameter Sets: ByProtocolName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the short protocol name as used by SMO. Valid values are 'Tcp', 'Np', and 'Sm'.
Type: String
Parameter Sets: ByShortName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
This command replaces the deprecated Get-ProtocolNameProperties function.