23 March, 2010
2 Comments
1 category
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))
Tags: PowerShell
Category: Uncategorized
2 Replies to “Show password in plaintext, by using Get-Credential in PowerShell”