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-DbaClientAlias

Gets a SQL Server alias by altering HKLM:\SOFTWARE\Microsoft\MSSQLServer\Client.

Screenshots

dbatools-Get-DbaClientAlias

Examples

Gets all SQL Server client aliases on the local computer.

Get-DbaClientAlias

Gets all SQL Server client aliases on Workstationx.

Get-DbaClientAlias -ComputerName workstationx

Author

This command was created by Chrissy LeMaire. You can find Chrissy on Twitter.

Get-Help

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

Source Code

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

Related commands