23 March, 2010
Roel van Lisdonk
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
Related Posts
Nice one Microsoft: Internet Explorer 9 will not let me download Visual Studio 11, but Google chrome will.
7 November, 2011
Roel van Lisdonk
0 Comments
1 category
When I click to download Microsoft Visual Studio 2011 on…
How to convert a generic List<string> to one string and back in C#
15 September, 2010
Roel van Lisdonk
0 Comments
1 category
If you want to concatenate all items in a generic…
How to delete and reseed all data in a SQL Server database
23 May, 2012
Roel van Lisdonk
0 Comments
1 category
If you want to delete all data in a SQL…
2 Replies to “Show password in plaintext, by using Get-Credential in PowerShell”