JAM 2023 PowerShell Scripts
These are the basic scripts talked about at JAM 2023
If you can, it is best to use a trusted connection for the SQL connection, barring that, the next best thing it seems is to protect the credentials in some fashion. This article has some great information: SECURELY STORING CREDENTIALS WITH POWERSHELL. This Bitbucket repo is for a library that uses the Windows Data Protection API (DPAPI). This work is by Theo Hardendood who authored the above blog.