https://bugs.winehq.org/show_bug.cgi?id=55859
--- Comment #5 from Alex Henrie alexhenrie24@gmail.com --- Interesting, it appears that Windows expands variables _after_ parsing the if parameters, but Wine expands them before: https://gitlab.winehq.org/wine/wine/-/blob/b1bd72343e49f68e42b4493055b1f5de9...
I can work on that problem while you deal with the sc/net problems. If I were you, I wouldn't bother making separate bug reports yet because we might be able to get most or all of these problems fixed quickly. Thank you for your help!