How to use PowerShell to set secure SA passwords for bulk servers


In this article, I will help you how to set secure SA passwords for bulk servers, sometimes, we have many SQL server instances in our company environment, the amount of it may over hundreds, and for security requirements, you may need to make the SA password of them different and enough safe, there will be too much manually tasks if you do it manually,  so the best practice we can bulk set the SA  password by the script and store it securely.

Use PowerShell to generate the list stored safe random password

First, you should create a server list including