RUN-AMUCK.COM

 

{ Each thought, a new adventure }

Flower

Alternative To Running An Application As A Windows Service

Here’s a situation that I recently encountered that presented an interesting challenge…

I was working with a Windows Server on which I needed to run a Java application as a Windows Service so that the app would not shut down as I logged off of my Remote Desktop Connection session. The kicker was that my user account for that server does not have sufficient permissions to set up a Windows Service for it.

I am not a sophisticated Windows Server admin and was unfamiliar with how Scheduled Tasks are created and managed within Windows Server. A friendly windows support person suggested the following method.

Windows Server Scheduled Task Control Panel

Windows Server Scheduled Task Control Panel

Here’s how it goes.

  1. Open Control Panel
  2. Open Scheduled Task
  3. Double-Click the Scheduled Task Wizard
  4. Select the program from the list or browse to the program that you want Windows to run as a scheduled task
  5. Enter a name for the task
  6. Select when you want the task to run. In my case, since I was needing it to behave similar to a Windows Service, I selected “When my computer starts”
  7. Enter your user account name, password and confirm password
  8. In the final dialog window, click Finish

Now you’ll either need to Restart the server or have your server admin to do so for the scheduled task to start up.

Voila!

I hope this is helpful. I don’t think I would necessarily suggest this as a first-choice instead of using a Windows Service where it’s a appropriate but this solution got me what I needed when I needed it.

If you enjoyed this post, make sure you subscribe to my RSS feed!

Tags: , , , , , , , , , , , , , , ,

One Response to “Alternative To Running An Application As A Windows Service”

  1. April 24th, 2009 at 5:12 am

    Jim Spence says:

    Friday In searching for sites related to web hosting and specifically control hosting panel web window, your site came up.

Leave a Reply