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?

有帮助吗?

解决方案

Yes use dbatools in particular the command Enable-DbaForceNetworkEncryption

许可以下: CC-BY-SA归因
不隶属于 dba.stackexchange
scroll top