I'm building VMs centrally and distributing subtly tweaked versions to different people. I've been doing this by mounting the virtual hard disk and editing files. I'm pretty confident I can do something similar with the registry. The next subtle tweak I'd like to make is to the SQL memory allocations.
I know you can change this by running a stored proc, but is there any way to do it that would work while the machine is offline? If not, is there a way I can push a sql command onto a queue somewhere so that it gets run the next time SQL starts up?