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


Remove-DbaCmConnection

Removes connection objects from the connection cache used for remote computer management.

Screenshots

dbatools-Remove-DbaCmConnection

Examples

Removes the cached connection to the server sql2014 from the cache.

Remove-DbaCmConnection -ComputerName sql2014

Clears the entire connection cache.

Get-DbaCmConnection | Remove-DbaCmConnection

Author

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

Get-Help

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

Source Code

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

Related commands