Fixes #5890: add windows support for motd technique