Set the $motd_file to C:\motd.txt when the $kernel fact is windows or else set the $motd_file to /etc/motd
$motd_file
C:\motd.txt
$kernel
windows
/etc/motd