Professional Documents
Culture Documents
Windows Services
Windows Services
Definition +
Window Services management +
Services in Windows desktop testing +
Standard Windows Services +
Difference between windows service and generic application +
Differences between Windows Services and Scheduled Tasks +
Useful Links +
Definition
Windows Services are core components of the Microsoft Windows operating system and
enable the creation and management of long-running processes. They are intended to
provide operating system features such as web serving, event logging, file serving, printing
or error reporting. Not all Services are developed by Microsoft. Some applications and
drivers install their Services.
Unlike regular software that is launched by the end user and only runs when the user is
logged on, Windows Services can start without user intervention and may continue to run
long after the user has logged off. The services run in the background and will usually kick in
when the machine is booted. Developers can create Services by creating applications that
are installed as a Service, an option ideal for use on servers when long-running functionality
is needed without interference with other users on the same system.
The services manage a wide variety of functions including network connections, speaker
sound, data backup, user credentials and display colors. Windows Services perform a similar
function as UNIX daemons.
Windows Services are installed and removed via *.INF setup scripts by SetupAPI. An
installed service can be started immediately following its installation and a running service
can be stopped before its deinstallation.
Windows has the Services panel to manage the services that are running on your computer
using a user interface. User can easily get there at any point by simply hitting WIN + R on the
keyboard to open the Run dialog and typing in services.msc.
The Service Control Manager maintains a database of installed services and driver services
and provides a unified and secure means of controlling them. The database includes
information on how each service or driver service should be started. It also enables system
administrators to customize security requirements for each service and thereby control
access to the service.
Fig.1.
The Services snap-in, built upon Microsoft Management Console, can connect to the local
computer or a remote computer on the network, enabling users to:
View a list of installed services along with service name, descriptions and
configuration;
Start, stop, pause or restart services;
Specify service parameters when applicable;
Change the startup type. Acceptable startup types include:
o Automatic: The service starts at system logon;
o Automatic (Delayed): The service starts a short while after the system has
finished starting up;
o Manual: The service starts only when explicitly summoned;
o Disabled: The service is disabled. It will not run;
Change the user account context in which the service operates;
Configure recovery actions that should be taken if a service fails;
Inspect service dependencies, discovering which services or device drivers depend
on a given service or upon which services or device drivers a given service depends;
Export the list of services as a text file or as a CSV file.
Fig.1.
The Services panel is simple: there are a list of services, a status column to show whether it
is running or not, and more information like name, description, and the startup type of the
service. User will notice that not every service is running all the time.
Task manager in Windows 8 or higher has a Services tab, which allows user to stop and start
services, also comes with a “Search online” option and even more useful, the “Go to details”
option.
Fig.2.
Some operations just cannot be done through the graphical user interface. If user wants to
delete a Service, for example, it can be done only by using the command line.
The sc.exe without any options calls the list of available options. Using them user can
manage Windows Services, including deleting action (it is recommended to use this option
only if user’s system has a malware).
The command sc queryex type=service state=all displays the list of all Windows Services.
The command sc queryex type=service state=active displays the list of running Services.
The command sc query “MyServiceName” displays the status of the given Service.
In some case new hardware could install additional services with drivers. In this case a test
engineer needs to check how a new hardware or a device will work with stopped or deleted
services as well.
Active Directory Service – Active Directory is a service Microsoft developed for Windows
networks. It is included by default in most Microsoft Windows Server systems. Active
Directory oversees centralized domain management and identity-related functions.
Prefetch and Superfetch Service – Speeds up operating system and application startup by
caching to RAM frequently used files, libraries and application components. It does this by
monitoring application usage and behavior.
Background Intelligent Transfer Service – This service facilitates throttled, prioritized and
asynchronous file transfer between machines via idle bandwidth. It plays a key role in the
delivery of software updates from servers to clients as well as in the transfer of files on
Microsoft’s instant messaging applications.
DNS Client Service – This service resolves domain names to IP addresses and locally caches
this data.
Internet Connection Sharing (ICS) Service – ICS enables the use of one device connected to
the internet as an access point for other devices. Access could be through Ethernet
broadband, cellular service or another gateway.
Routing and Remote Access Service – This service makes it possible to create applications
that manage the remote access and routing capabilities of the Windows operating system. It
allows the machine to act as a network router.
The full list of standard Windows Services
A Windows processes are the list of running applications and background processes on a
system.
Need to install service using command; Need to create task on Task scheduler window;
Need to uninstall service using No need to install task like windows service;
command; Task will open pop up whenever an application will
It will not open pop up (UI- black console execute by task scheduler;
window) while running application. It is more convenient to run application once a day
or after time period unlike windows service.
Useful Links