Saving credentials for reuse by powershell and error ConvertTo-SecureString : Key not valid for use in specified state

You have to create the password string on the same computer and with the same login that you will use to run it.

Leave a Comment