PowerShell - Get-Credential decode password? PowerShell - Get-Credential decode password? powershell powershell

PowerShell - Get-Credential decode password?


This is what I use ( though this makes it insecure, but I think you understand that):

$credential.GetNetworkCredential().password


PS > $credential.GetNetworkCredential().usernamePS > $credential.GetNetworkCredential().password