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
Using the sysdtslog90 table for logging package (user) variables in Microsoft SQL Server 2005 Integration Services
12 May, 2011
Roel van Lisdonk
0 Comments
1 category
The sysdtslog90 table is used by Microsoft SQL Server 2005…
Use the "RUN AS" command to let Microsoft SQL Server Management Studio connect with an other Windows account or to an other domain
3 August, 2010
Roel van Lisdonk
6 Comments
1 category
If you want to use Windows Authentication in the Microsoft…
Fixing the error: The type of one of the expressions in the join clause is incorrect. Type inference failed in the call to ‘GroupJoin’. in a left join with LINQ.
19 October, 2012
Roel van Lisdonk
0 Comments
1 category
If you do a left join in LINQ on multiple…
2 Replies to “Show password in plaintext, by using Get-Credential in PowerShell”