Advantages of Windows Service Application in .net

  • You can control the user (and the rights associated with this user account) which starts the process
  • an Automatically started process means the desktop need to be on, not user logged, for the service to run
  • a policy on failure can be defined (try to restart n times run a specific program if fails)
  • a dependency can be defined (if you depend on other sevices)
  • you can wrap your scrip in an invisible windows
  • you can easily start/stop/restart the script (net start <scriptname>)
  • You can manage a service from another machine (start/stop)
  • As services write to the event log you can also monitor the service from another machine (although nothing stops you from doing this from a regular application)
  • No one has to be logged on for the service to run
Tagged . Bookmark the permalink.

Leave a Reply