To show the password from the Get-Credentials cmdlet in plaintext, use the following PowerShell script:
$credential = Get-Credential
[Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($credential .Password))
Pingback: How to know the password captured with Get-Credential - TechiBee
Pingback: Compare secure strings entered through powershell - TechiBee