This commit is contained in:
OCram85 2018-03-21 15:18:18 +01:00
parent c0b13052b3
commit 1773f1fc06

View File

@ -88,10 +88,10 @@ function Set-CredentialStoreItem {
}
if (-not($Credential)) {
$Creds = Get-Credential -Message $CredentialName
$Credential = Get-Credential -Message $CredentialName
}
if ($Creds.UserName) {
if ($Credential.UserName) {
if ($CSContent.Type -eq "Shared") {
$Key = Get-ChallengeFile
$encypted = ConvertFrom-SecureString -SecureString $Creds.Password -Key $Key