I have the following scheduled task set to run at 9:00am every morning on my SBS 2011 / Exchange Server.
C:\LetsEncrypt\letsencrypt.exe --renew --baseuri “https://acme-v01.api.letsencrypt.org/” --script C:\LetsEncrypt\InstallCertificate.cmd
It is set to “Run With Highest Privileges” in the task scheduler.
There are no errors just informational messages in the scheduler once per day and nothing is in the log files.
Nothing appears to happen and the certificate is not renewed. This is what I expect when the certificate has more than 30 days left before it expires.
If I run the same command (today) from an elevated command prompt my certificate is successfully renewed for 3 months and all happy messages in the LetsEncrypt logs. There was 27 days to go on the existing certificate when I ran the command manually. The same administrator user is set in the scheduled task as was logged in when running from the command line.
Any ideas why running this command from the task scheduler would stop it from working?
Thanks in advance