title: PowerShell - Get-Credential decode password?
body: <p>I want to use the Get-Credential cmdlet in my code.</p>
  
  <p>How is is possible to decode the password easily back from the System.Security.SecureString format?</p>
  
  <p>(I must use the password in clear text format at one part in my code)</p>
  
  <pre><code>$credential = Get-Credential
  $credential.Password | ConvertFrom-SecureString
  $credential
  #How to show password in text format?
  </code></pre>
  
  <p>My workaround, but I think there is also a normal way</p>
  
  <pre><code>$credCachePS = New-Object System.Net.CredentialCache 
  $credCachePS.Add("uridummy", "NTLM", $credential) 
  $credCachePS | select Password
  </code></pre>