I'm running some servers on my Ubuntu instance on WSL through windows 11. For those servers to run, I need to mount a hard drive, which i do with the command
wsl --mount //./PHYSICALDRIVE0
The above command needs to be run from the PowerShell as Administrator
After that i need to launch my default instance
Is there a way to automate this process so it happens silently when i boot windows?
-C foo x;bar yetc. Starting from task scheduler args means no multiline (and special characters can be weird), so usually just call a script if you need anything complicated. – Cpt.Whale Mar 02 '23 at 16:32