Usar ConvertFrom-SecureString para convertir una cadena segura (System.Security.SecureString) en una cadena (System.String)

The ConvertFrom-SecureString cmdlet converts a secure string (System.Security.SecureString) into an encrypted standard string (System.String). Unlike a secure string, an encrypted standard string can be saved in a file for later use. The encrypted standard string can be converted back to its secure string format by using the ConvertTo-SecureString cmdlet.

[crayon-6a9d5709cf829183333891/]