Criptografia de senha do PowerShell no script
(get-credential).password | ConvertFrom-SecureString | set-content "C:\Passwords\password.txt"
Enthusiastic Eagle
(get-credential).password | ConvertFrom-SecureString | set-content "C:\Passwords\password.txt"