Powershell password encryption in script by (get-credential).password | ConvertFrom-SecureString | set-content "C:\Passwords\passwordFile.txt"(get-credential).password | ConvertFrom-SecureString | set-content "C:\Passwords\passwordFile.txt" Please follow and like us: