Using certbot renew with pre-/posthook in windows 10 shows error

Well, that's helpful. The earlier error:

looks to be directly related to the content of the PowerShell error:

Ausf\x81hrung

So we have two problems:

  1. Certbot code, when calling hooks, is not handling decoding the output of the hooks properly. This needs to be fixed, but won't make the hook work for you.
  2. Your system has disabled PowerShell scripting in some way which interferes with Certbot launching the hooks. I'm afraid I don't know much about Windows policies and it's not clear to me whether there's anything we can do about this in Certbot.
2 Likes