Tests over which paths a computer can be managed.
This function tries out the connectivity for:
– Cim over WinRM
– Cim over DCOM
Results will be written to the connectivity cache and will cause Get-DbaCmObject and Invoke-DbaCmMethod to connect using the way most likely to succeed. This way, it is likely the other commands will take less time to execute. These other’s too cache their results, in order to dynamically update connection statistics.
This function ignores global configuration settings limiting which protocols may be used.
Performs a full-spectrum connection test against the computer sql2014. The results will be reported and registered, future calls from Get-DbaCmObject will thus recognize the results and optimize the query.
Test-DbaCmConnection -ComputerName sql2014
This test will run a connectivity test against the computer sql2014
– It will use windows authentication of the current user
– It will only test Cim over DCOM and Cim over WinRM
The results will be reported and registered, future calls from Get-DbaCObject will thus recognize the results and optimize the query.
Test-DbaCmConnection -ComputerName sql2014 -Credential $null -Type CimDCOM, CimRM