Here's an example to enable Microsoft Teams (consumer) to launch at startup automatically: You may also be able to configure an app to launch at startup from the app's settings. How to configure app automatic start with app preferences For instance, the 'Mozilla Firefox' executable file is the 'firefox.exe' file.Īfter you complete the steps, Windows 11 will launch any app, shortcut, or script that it finds in the Startup folder. Quick note: Usually, the exe file has the name (or part of the name) and the icon of the program. After restarting the service, it will start automatically.
bat file in Windows startup directory with this line (dir find here: Win + R and shell:startup ): wsl sudo service mysql start. Select the app executable (.exe) file that launches the program. Create line in /etc/sudoers (at WSL to prevent asking password): sudo ALL (ALL) NOPASSWD: /usr/sbin/service mysql start.Quick tip: Classic 32-bit applications are usually installed in the 'Program Files (x86)' folder, and 64-bit applications are typically installed in the 'Programs Files' folder. Source: Windows Central (Image credit: Source: Windows Central)