Enkripsi kata sandi PowerShell dalam skrip

(get-credential).password | ConvertFrom-SecureString | set-content "C:\Passwords\password.txt"
Enthusiastic Eagle