Private/Get-SecureStringText.ps1
function Get-SecureStringText { [CmdletBinding()] param([Parameter(ValueFromPipeline)]$SecureString) process { (New-Object PSCredential ".",$SecureString).GetNetworkCredential().Password } } |