Fix Set-CredentialStoreItem #76
@ -83,9 +83,12 @@ function Set-CredentialStoreItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Check if the user passed -Shared. If he added -Shared, we'll pass it into the splatting
|
# Check if the user passed -Shared. If he added -Shared, we'll pass it into the splatting
|
||||||
if ($PSCmdlet.ParameterSetName -eq 'Shared') {
|
if ($PSBoundParameters.ContainsKey('Shared')) {
|
||||||
$DefaultSplatting.Add('Shared', $true)
|
$DefaultSplatting.Add('Shared', $true)
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$DefaultSplatting.Add('Shared', $false)
|
||||||
|
}
|
||||||
|
|
||||||
# Now lets check the given CredentialStore.
|
# Now lets check the given CredentialStore.
|
||||||
if (-not(Test-CredentialStore @DefaultSplatting)) {
|
if (-not(Test-CredentialStore @DefaultSplatting)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user