Failed to run importexchange.v2.ps1 script

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: spd.net

I ran this command: win-acme ImportExchange.v2.ps1 at a Windows 2016 server with Exchange 2016 server running

It produced this output:
Plugin Manual generated source spd.net with 4 identifiers
Plugin Single created 1 order
Downloading certificate [Manual] spd.net
Store with CertificateStore...
Installing certificate in the certificate store
Adding certificate [Manual] spd.net @ 2025/6/14 in store WebHosting
Installing with Script...
Script C:\inetpub\Win-ACME\win-acme.v2.2.9.1701.x64.pluggable\scripts\Importexchange.v2.ps1 starting with parameters 'E59CCE0F6994D23EB0A35DF35D857F4C6DBBA487' 'IIS,SMTP,IMAP' 1 'C:\ProgramData\win-acme\acme-v02.api.letsencrypt.org\Certificates\Cjedfax6sU2VO-50TbMN1g-main-6ef388235364cee2522ec26883708dcde16062a1-temp.pfx' '********' '[Manual] spd.net @ 2025/6/14'
Script error: C:\inetpub\Win-ACME\win-acme.v2.2.9.1701.x64.pluggable\scripts\Importexchange.v2.ps1 : Error in
Script error: Enable-ExchangeCertificate
Script error: At line:1 char:3
Script error: + &{&'C:\inetpub\Win-ACME\win-acme.v2.2.9.1701.x64.pluggable\scripts\Im ...
Script error: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Script error: + CategoryInfo : NotSpecified: (:slight_smile: [Write-Error], WriteErrorException
Script error: + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Importexchange.v2.ps1
Script error: C:\inetpub\Win-ACME\win-acme.v2.2.9.1701.x64.pluggable\scripts\Importexchange.v2.ps1 : Script hasn't completed.
Script error: At line:1 char:3
Script error: + &{&'C:\inetpub\Win-ACME\win-acme.v2.2.9.1701.x64.pluggable\scripts\Im ...
Script error: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Script error: + CategoryInfo : NotSpecified: (:slight_smile: [Write-Error], WriteErrorException
Script error: + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Importexchange.v2.ps1
Script finished
Scheduled task points to different location for .exe and/or working directory
Scheduled task random delay mismatch
Scheduled task exists but does not look healthy

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):

The versions of win-acme I am running is from 2.2.9.1701.x64-pluggable

My scheduled task for auto renewing was working fine until the time for my renewal on Jun. Please advise.

Possible best to ask on the win-acme discussion section of their github :win-acme/win-acme · Discussions · GitHub

The log doesn't seem to be telling very much as the error messages appear to be truncated.

You may want to try simple-acme because that is currently maintained by the author and win-acme is not.

Double check that you have plenty of disk space and it's also worth understanding why it says "Scheduled task exists but does not look healthy"

3 Likes