How to start VirtualBox machines automatically as a service

Did you know that VirtualBox doesn’t easily support automatic startup on a Windows host? That’s annoying, isn’t it? Well, here’s the missing manual.