I have a script I\'m writing that makes a connection to a SOAP service. After the connection is made, I need to pass in a the username/pass with every command I send. The pr
$Password is a Securestring, and this will return the plain text password.
[Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($Password))