dbatools is a free PowerShell module with over 300 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-DbaCmConnection

Retrieves windows management connections from the cache.

Screenshots

dbatools-Get-DbaCmConnection

Examples

List all cached connections.

Get-DbaCmConnection

List the cached connection – if any – to the server sql2014.

Get-DbaCmConnection sql2014

List all cached connection that use a username containing “charles” as default or override credentials.

Get-DbaCmConnection -UserName “charles

Author

This command was created by Fred Winmann. You can find Fred on Twitter.

Get-Help

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

Source Code

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

Related commands