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
Great article on Asynchronous programming and continuation-passing style in JavaScript
20 April, 2016
Roel van Lisdonk
0 Comments
1 category
Just red this article on: Asynchronous programming and continuation-passing…
How to bulk delete data based on strings in a generic list in C# and EF 4.2
11 January, 2012
Roel van Lisdonk
0 Comments
1 category
Let’s assume you have a table Customer in a Microsoft…
Overwriting the msiexec property TARGETDIR for x86 and x64 application setups
23 December, 2010
Roel van Lisdonk
0 Comments
1 category
If you want to remove a application from you’re system…
2 Replies to “Show password in plaintext, by using Get-Credential in PowerShell”