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:
1 |
Set-DbatoolsConfig -FullName sql.connection.trustcert -Value $true -Register |
or
1 2 3 4 5 |
# Set these defaults for all future sessions on this machine Set-DbatoolsInsecureConnection # Set defaults just for this session Set-DbatoolsInsecureConnection -SessionOnly |