Forum Discussion

Thylane's avatar
Thylane
Copper Contributor
Feb 09, 2026

How to launch a command in a command prompt at startup?

When Windows 10 starts, I would like to automatically launch a command line that requires the cmd.exe command prompt in administrator mode to launch correctly?
 
The task in question is the music server: Navidrome.
The Navidrome service launches fine at startup, but not the executable that provides access to the music database and web interface.
 
I tried to create a task at startup, but it won't launch:
 
SCHTASKS /CREATE /TN "navidrome" /TR "C:\Services\navidrome\navidrome.exe" /SC ONSTART /RL HIGHEST
 
It is well created and is on the task list:
 
SCHTASKS/QUERY
 
but it does not run at startup.
 
Do you have an idea to solve this problem? Thanks in advance.

No RepliesBe the first to reply