Created
March 5, 2020 15:54
-
-
Save manualbashing/a9797ee6a533957f677b7c5f743e7bf5 to your computer and use it in GitHub Desktop.
Clear Text Password from Secure String
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $BSTR = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($secString) | |
| $ClearTextPassword = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment