When I run a Powershell script using an encrypted password:
$PasswordEncrypted = Get-Content "C:\SecureFolder\FileWithPasswordEncrypted.txt" | ConvertTo-SecureString
I get this error:
ConvertTo-SecureString: Error occurred during a cryptographic operation.
What am I doing wrong?