I believe this fixes AppVeyor errors in master. Will close if that is not the case.
Closes #17976
ACK a5a2654bbc43b5c208418872e5d4c0acbadda5de - glad the fix turned out to be this simple.
ACK a5a2654bbc43b5c208418872e5d4c0acbadda5de
Thanks a lot @kallewoof!
Added this for backporting in 17988 to fix Appveyor.