Error cmdlet Import-ExchangeCertificate -FileName - no parameter -fileName

Stephan Hager 1 Reputation point
2022-04-26T15:56:10.647+00:00

[PS] C:\>Import-ExchangeCertificate -Server EX2016-035 -FileName "\EX2016-035\zertifikat\kkwzm20220425.cer" -PrivateKeyExportable:$true

Why Parameternamen "FileName"

Es wurde kein Parameter gefunden, der dem Parameternamen "FileName" entspricht.

  • CategoryInfo : InvalidArgument: (:) [Import-ExchangeCertificate], ParameterBindingException
  • FullyQualifiedErrorId : NamedParameterNotFound,Import-ExchangeCertificate
  • PSComputerName : sv-exchange-kk.domainname.de
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,357 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Joyce Shen - MSFT 16,646 Reputation points
    2022-04-27T05:27:31.81+00:00

    Hi @Stephan Hager

    Agree with the suggestion above,

    Import-ExchangeCertificate -Server Mailbox01 -FileData ([System.IO.File]::ReadAllBytes('\\FileServer01\Data\Exported Fabrikam Cert.pfx')) -Password (ConvertTo-SecureString -String 'P@ssw0rd1' -AsPlainText -Force)  
    

    This example imports the same certificate file from Example 1. This method is required in Exchange 2016 and Exchange 2019 because the FileName parameter is not available.

    196831-image.png

    Details: Import-ExchangeCertificate


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments