dbatools is a free PowerShell module with over 200 SQL Server administration, best practice and migration commands included.

Please note that documentation and command names may be out of date while we work furiously towards 1.0


Get-DbaClientProtocol

Gets the SQL Server related client protocols on one or more computers. Requires Local Admin rights on destination computer(s).

Screenshots

Examples

To get the SQL Server related client protocols on computer sqlserver2014a.

Get-DbaClientProtocol -ComputerName sqlserver2014a

To get the SQL Server related client protocols on computers sql1, sql2 and sql3.

‘sql1′,’sql2′,’sql3’ | Get-DbaClientProtocol

To get the SQL Server related client protocols on computers sql1 and sql2, and shows them in a grid view.

Get-DbaClientProtocol -ComputerName sql1,sql2 | Out-Gridview

To disable the VIA ClientNetworkProtocol on computer sql1 If succesfull, returncode 0 is shown.

(Get-DbaClientProtocol -ComputerName sql1 | Where { $_.DisplayName = ‘via’ }).Disable()

Author

This command was created by Klaas Vandenberghe. You can find Klaas on Twitter and his blog.

Get-Help

From PowerShell, execute Get-Help Get-DbaClientProtocol -Detailed for more information on this function.

Source Code

Want to see the source code? View Get-DbaClientProtocol.ps1 on GitHub
 

Related commands