If you get the error:
Get-DbaDatabase] Failure | The certificate chain was issued by an authority that is not trusted.
You can set in dbatools:
|
Set-DbatoolsConfig -FullName sql.connection.trustcert -Value $true -Register |
or
|
# Set these defaults for all future sessions on this machine Set-DbatoolsInsecureConnection # Set defaults just for this session Set-DbatoolsInsecureConnection -SessionOnly |
dbatools sql The certificate chain was issued by an authority that is not trusted.