Powershell und System.Sicherheit.Die Kryptographie.X509Certificates.X509Certificate2

bin ich immer diese Fehlermeldung wenn ich das system laufen.security-namespace. Dies ist, was ich bin, läuft nach

$cert=New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("C:\mycert.cer")

New-Object: Cannot find type [System.Security.Cryptography.X509Certificates.X509Certificate2("C:\mycert.cer")]: make sure the assembly containing this type is loaded. 
At line:1 char:19
    + $cert = New-Object <<<<
    + CategoryInfo          : InvalidType: (:) [New-Object], PSArgumentException
    + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand**

Was mache ich falsch?

  • Die Befehle ok aussieht. Ich kann nicht reproduzieren Sie den Fehler in der PowerShell v1 oder v2.
InformationsquelleAutor NieAR | 2011-07-14
Schreibe einen Kommentar