SQL Server 2019 setting Force Encryption with a script
-
16-03-2021 - |
Pergunta
I have to update 50+ servers to use encrypted connection strings. Is there a way to script setting Force Encryption and TrustServerCertificate (e.g Powershell, or ???) so that I don't have to open Configuration Manager and set on each box?
Solução
Yes use dbatools in particular the command Enable-DbaForceNetworkEncryption
Licenciado em: CC-BY-SA com atribuição
Não afiliado a dba.stackexchange