Commit 4f64757c authored by Hans van den Heuvel's avatar Hans van den Heuvel
Browse files

Fixed error in writing secure credentials 'secure' in de cred store.

parent ddfecb32
......@@ -768,8 +768,11 @@ Doorloopt een tekstdialoog waarin de naam van de credential, de username en pass
}
if ( $PSCmdlet.ParameterSetName -eq 'Credential' ) {
$UserName=$Credential.UserName
$Password=$Credential.GetNetworkCredential().Password
if ( $Secure ) {
$Password=ConvertFrom-SecureString -SecureString $Credential.Password
} else {
$Password=$Credential.GetNetworkCredential().Password
}
} else {
if ( $Secure ) {
$Password=ConvertFrom-SecureString -SecureString (ConvertTo-SecureString $Password -AsPlainText -Force)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment