From youtrack\bin….

youtrack.bat service install --force /runAsSystem