$password = ConvertTo-SecureString "YOURPASSWORD" -AsPlainText -Force $password | ConvertFrom-SecureString -key (1..16) | Set-Content "~\azuresecret.txt" #$password | ConvertFrom-SecureString | Set-Content "~\azuresecret.txt"