Hallo zusammen!
Ich habe folgendes Problem kurz vor Ende des Scripts:
Exchange;Info;Lets try to enable certificate for Exchange Server;
Exchange;Info;Exchange Server Version: Version 15.2 (Build 1118.7);
Exchange;Error;Failed to import and enable Certificate;Es wurde kein Parameter gefunden, der dem Parameternamen "FileName" entspricht.
SendMail;Info;E-Mail settings are disabled;
End;Info;End of script;
Umgebung: Windows Server 2022 mit Exchange 2019
23.08.2022 13:16:04;System;Info;Certificate Assistant Exchange 2019 Version;
23.08.2022 13:16:04;System;Info;PowerShell Version: 5.1.20348.859 OSVersion: 10.0.20348.0;
23.08.2022 13:16:04;Check Posh-ACME;Info;Check if Module installed;
23.08.2022 13:16:04;Load Posh-ACME;Info;Posh-ACME is installed, try to load it;
23.08.2022 13:16:04;Load Posh-ACME;Info;Module Import was successfull, PoshACMEVersion 4.14.0;
23.08.2022 13:16:04;Load Exchange SnapIns;Info;Try to load Exchange SnapIns;
23.08.2022 13:16:04;Load Exchange SnapIns;Info;Sucessfully loaded Exchange SnapIns;
23.08.2022 13:16:04;IIS;Info;Trying to create .Well-Known Directory;
23.08.2022 13:16:04;IIS;Info;Well-Known Folder already exists, skipping;
23.08.2022 13:16:04;IIS;Info;Added Mime Type to Well-Known Folder;
23.08.2022 13:16:04;IIS;Info;Changing Let's Encrypt IIS directory to http;
23.08.2022 13:16:05;IIS;Info;Successfully changed Let's Encrypt IIS directory to http;
23.08.2022 13:16:05;IIS;Info;Checking Let's Encrypt IIS directory to accept validation by http request;
23.08.2022 13:16:05;IIS;Info;.well-known directory accepts http;
23.08.2022 13:16:05;Exchange FQDNs;Info;Getting Exchange FQDNs;
23.08.2022 13:16:05;Exchange FQDNs;Info;Getting local Exchange Server Name;
23.08.2022 13:16:05;Exchange FQDNs;Info;Local Exchange Name EXCH2019;
23.08.2022 13:16:05;Exchange FQDNs;Info;Getting Autodiscover Hostname;
23.08.2022 13:16:05;Exchange FQDNs;Info;Autodiscover Hostname autodiscover.[externe Domain];
23.08.2022 13:16:05;Exchange FQDNs;Info;Getting Exchange Outlook Anywhere External FQDN;
23.08.2022 13:16:06;Exchange FQDNs;Info;Exchange Outlook Anywhere External FQDN [externe Domain];
23.08.2022 13:16:06;Exchange FQDNs;Info;Getting Exchange Outlook Anywhere Internal FQDN;
23.08.2022 13:16:06;Exchange FQDNs;Info;Exchange Outlook Anywhere Internal FQDN [externe Domain];
23.08.2022 13:16:06;Exchange FQDNs;Info;Getting Exchange OAB External FQDN;
23.08.2022 13:16:07;Exchange FQDNs;Info;Exchange OAB External FQDN [externe Domain];
23.08.2022 13:16:07;Exchange FQDNs;Info;Getting Exchange OAB Internal FQDN;
23.08.2022 13:16:08;Exchange FQDNs;Info;Exchange OAB Internal FQDN [externe Domain];
23.08.2022 13:16:08;Exchange FQDNs;Info;Getting Exchange EAS Internal FQDN;
23.08.2022 13:16:09;Exchange FQDNs;Info;Exchange EAS Internal FQDN [externe Domain];
23.08.2022 13:16:09;Exchange FQDNs;Info;Getting Exchange EAS External FQDN;
23.08.2022 13:16:10;Exchange FQDNs;Info;Exchange EAS External FQDN [externe Domain];
23.08.2022 13:16:10;Exchange FQDNs;Info;Getting Exchange EWS Internal FQDN;
23.08.2022 13:16:11;Exchange FQDNs;Info;Exchange EWS Internal FQDN [externe Domain];
23.08.2022 13:16:11;Exchange FQDNs;Info;Getting Exchange EWS External FQDN;
23.08.2022 13:16:12;Exchange FQDNs;Info;Exchange EWS External FQDN [externe Domain];
23.08.2022 13:16:12;Exchange FQDNs;Info;Getting Exchange ECP Internal FQDN;
23.08.2022 13:16:13;Exchange FQDNs;Info;Exchange EWS Internal FQDN [externe Domain];
23.08.2022 13:16:13;Exchange FQDNs;Info;Getting Exchange ECP External FQDN;
23.08.2022 13:16:14;Exchange FQDNs;Info;Exchange ECP External FQDN [externe Domain];
23.08.2022 13:16:14;Exchange FQDNs;Info;Getting Exchange OWA Internal FQDN;
23.08.2022 13:16:15;Exchange FQDNs;Info;Exchange OWA Internal FQDN [externe Domain];
23.08.2022 13:16:15;Exchange FQDNs;Info;Getting Exchange OWA External FQDN;
23.08.2022 13:16:16;Exchange FQDNs;Info;Exchange OWA ExternalFQDN [externe Domain];
23.08.2022 13:16:16;Exchange FQDNs;Info;Getting Exchange MAPI Internal FQDN;
23.08.2022 13:16:16;Exchange FQDNs;Info;Exchange MAPI Internal FQDN [externe Domain];
23.08.2022 13:16:16;Exchange FQDNs;Info;Getting Exchange MAPI External FQDN;
23.08.2022 13:16:17;Exchange FQDNs;Info;Exchange MAPI External FQDN [externe Domain];
23.08.2022 13:16:17;Exchange FQDNs;Info;Make them unique;
23.08.2022 13:16:17;Exchange FQDNs;Info;FQDNs are unique;
23.08.2022 13:16:17;LE System;Info;Setting LE Mode;
23.08.2022 13:16:18;LE System;Info;Setting LE Mode to PRODUCTION MODE (LIVE SYSTEM);
23.08.2022 13:16:18;LE System;Info;Checking for existing LE Account;
23.08.2022 13:16:18;LE System;Info;Found a existing LE Account;
23.08.2022 13:16:18;LE Certificate;Info;Trying to create a new order for a certificate;
23.08.2022 13:16:19;LE Certificate;Info;Successfully ordered certificate;
23.08.2022 13:16:19;LE System;Info;Creating Autorisation files for LE verification;
23.08.2022 13:16:19;LE System;Info;Asking LE to verify the order;
23.08.2022 13:16:20;LE System;Info;Successfully informed LE to verify the order;
23.08.2022 13:16:20;LE System;INFO;Let's give LE some time to validate (1 min);1 min
23.08.2022 13:17:20;LE System;INFO;Time to wake up, need coffee!;
23.08.2022 13:17:20;LE System;INFO;Let's check the authorization;
23.08.2022 13:17:20;LE System;INFO;Authorization for autodiscover.[externe Domain] is valid;
23.08.2022 13:17:20;LE System;INFO;Authorization for [externe Domain] is valid;
23.08.2022 13:17:20;LE System;INFO;Let's refresh the order;
23.08.2022 13:17:21;LE System;INFO;Let's check if order is ready;
23.08.2022 13:17:21;LE System;INFO;Order is ready;
23.08.2022 13:17:21;LE System;INFO;Let's get the certificate;
23.08.2022 13:17:23;LE System;INFO;Getting certificate was successfull. Thumbprint is XXX;
23.08.2022 13:17:23;LE System;INFO;Let's check if the PFX is present;
23.08.2022 13:17:23;Cert Export;Info;PFX XXX verified successfully;
23.08.2022 13:17:23;LE System;INFO;CleanUp Mime Type;
23.08.2022 13:17:23;LE System;INFO;CleanUp successfull;
23.08.2022 13:17:23;Exchange;Info;Lets try to enable certificate for Exchange Server;
23.08.2022 13:17:23;Exchange;Info;Exchange Server Version: Version 15.2 (Build 1118.7);
23.08.2022 13:17:23;Exchange;Error;Failed to import and enable Certificate;Es wurde kein Parameter gefunden, der dem Parameternamen "FileName" entspricht.
23.08.2022 13:17:23;SendMail;Info;E-Mail settings are disabled;
23.08.2022 13:17:23;End;Info;End of script;
Vielleicht hat ja jemand eine Idee...
Grüße Thomas
Noch eine Info:
Habe es gerade auf einem zweiten Server probiert. Da bekomme ich exakt die gleiche Meldung!
Kann es sein, dass es an Windows 2022 Server liegt und der Befehl da geändert wurde:
Import-ExchangeCertificate -FileName $CertPath -FriendlyName $SANAlias -Password $ImportPassword -PrivateKeyExportable:$true | Enable-ExchangeCertificate -Services „SMTP, IMAP, POP, IIS“ -force