Saturday, October 28, 2017

Windows Service Statuses and Login Types

Learn Windows Service programming for only $10 in this Udemy course: 

Windows Services Statuses

A Windows Service can have following statuses:
  1. Stopped
  2. Started
  3. Paused
  4. Pending Start
  5. Pending Stop
  6. Pending Pause

Windows Service Startup Types

A Windows Service can have multiple Startup Types which are given below. 
  1. Manual
  2. Automatic
  3. Disabled
  4. Automatic(Delayed Start)

It tells whether a service is started automatically by Windows or it is stopped, it is possible to disable a service as well and in that case, this service status column will contain the word “Disabled”. 
Learn Windows Service programming for only $10 in this Udemy course: 

Windows Service Login Account

If we see on Service Control Manager there's another column “Log On As”. This column shows the username of the Windows account a particular service is going to use. Possible values of this field are:
  1. Local System
  2. Network Service
  3. Local Service
  4. Specific User

More information can be found on the link mentioned in the description of this lecture.
Having a specific set of credentials to log in makes it possible for Windows Services to start before a user logs-in and stays operational even when a human user is gone.
Among these types of login credentials, LocalService is the one with the fewest powers. It’s a non-privileged user on the local machine.
LocalSystem, on the other hand, is the most powerful type of user and it can do almost anything you want the machine.
Third type NetworkService is slightly more powerful than LocalService, and it can interact with various network services. Details are not relevant from the perspective of this course so I would prefer not to stress too much on the definition.

Performing operations on Windows Service

We can perform various service operations by clicking on a service entry in SCM and going to the Action menu.
It is also possible to right-click a Windows service in SCM (Service Control Manager) and select ‘Properties’ from the drop-down.
The properties dialog not only allows you to start/stop/pause/resume a service, it also shows you the file path from where a specific service is running.
Learn Windows Service programming for only $10 in this Udemy course: 

No comments:

Post a Comment

Feel free to talk back...