title: How to start a application without getting killed after log off?
body: <p>I have a Java application which should run on a server machine in the background (the application can be started by a command without GUI). The problem is: When I log off from the server, the application gets killed. I'm looking for something similar like <code>nohup</code> under Linux. I found some solutions, but I'm unsure, what is the best for my situation (Windows Server 2003, Java Application run from BAT-Skript, restart after booting the machine)? What are the pros and cons of the solutions?</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/a/78691/237483">psexec</a>: Do the process really need to run under the SYSTEM account?</li>
  <li><a href="http://support.microsoft.com/kb/137890/en-us" rel="nofollow noreferrer">Combination of <code>instsrv</code> and <code>srvany</code></a>: But <a href="https://stackoverflow.com/a/582085/237483">srvany should should never be used in a production environment</a></li>
  <li>I have started the application with the scheduled tasks with the option run as <code>NT AUTHORITY\SYSTEM</code>. But after log off, the application was still killed. Can I get this working?</li>
  <li>The <a href="https://stackoverflow.com/q/77528/237483">DOS Task Scheduler AT command</a></li>
  </ul>