none
Example in the Cmdlets failed with $IsCA at line 240 RRS feed

  • Question

  • PS C:\A_CSC_MITRE_PM\PIV_V81\Software\New-SelfSignedCertificateEx> New-SelfsignedCertificateEx
    -Subject "CN=www.domain.com" -EKU "Server Authentication", "Client authentication" -KeyUsage "KeyEncipherment, DigitalSi
    gnature" -SAN "sub.domain.com","www.domain.com","192.168.1.1" -ProviderName "Microsoft Software Key Storae Provider" -Al
    gorithmName ecdh_256 -KeyLength 256 -SignatureAlgorithm sha256

    Method invocation failed because [System.Collections.Generic.Dictionary`2+KeyCollection[[System.String, mscorlib, Versi
    on=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=2.0.0.0, Culture=neutra
    l, PublicKeyToken=b77a5c561934e089]]] doesn't contain a method named 'Contains'.
    At line:240 char:41
    +     if ($PSBoundParameters.Keys.Contains <<<< ("IsCA")) {
        + CategoryInfo          : InvalidOperation: (Contains:String) [], ParentContainsErrorRecordException
        + FullyQualifiedErrorId : MethodNotFound

    Please advise what might be wrong on Win7 machine? Thanks

    • Moved by Bill_Stewart Monday, March 12, 2018 9:06 PM Unanswerable drive-by question
    Tuesday, January 30, 2018 5:22 PM

All replies