diff --git a/src/Item/New-CredentialStoreItem.ps1 b/src/Item/New-CredentialStoreItem.ps1 index 37d0f3d..4119aab 100644 --- a/src/Item/New-CredentialStoreItem.ps1 +++ b/src/Item/New-CredentialStoreItem.ps1 @@ -122,6 +122,9 @@ function New-CredentialStoreItem { $_.Thumbprint -eq $CSContent.Thumbprint } | Select-Object -First 1 if ($null -eq $Cert) { + if ($isLinux) { + throw "There is no windows certificate store on linux systems!" + } $ErrorParams = @{ ErrorAction = 'Stop' Exception = [System.Exception]::new(