SlideShare a Scribd company logo
1 of 20
Windows Services 101
Nurul Haszeli Ahmad
01 June 2015
HIGHLIGHTS
Understanding Windows Services
Programming Windows Services
View Windows Services
What is Windows Services?
References
Creating Windows Services
Windows Services vs Task Scheduler
WHAT IS WINDOWS SERVICES?
Windows Services
• A.K.A NT Services
• long-running executable applications that run
in their own Windows sessions
• Runs on background (no UI)
• Example services: DB Server, Anti-virus,
SSH, HTTP, Printer Spooler, etc
• Configurable:
• Runs on startup (computer boot)
• Delay run
• Manual / Auto run
• Start with parameter
• Starts for specific username
• An application can be programmable to run
as a services via .NET (creating a Windows
Service Application)
VIEW WINDOWS SERVICES
1. Command Prompt
2. Task Manager
3. Services Manager
4. Computer Manager
C:net start
C:net start | more
VIEW WINDOWS SERVICES
1. Command Prompt
2. Task Manager
3. Services Manager
4. Computer Manager
VIEW WINDOWS SERVICES
1. Command Prompt
2. Task Manager
3. Services Manager
4. Computer Manager
VIEW WINDOWS SERVICES
1. Command Prompt
2. Task Manager
3. Services Manager
4. Computer Manager
UNDERSTANDING WINDOWS SERVICES
Service
s Name
Current
Status
Start
Mode
Start
As/By
• Started
• Pause
• Pending
• Stop
Service
Status
• Automatic
• Manual
• Delay Start
• Disabled
Service
Start Mode
• Local System
• Local Service
• Network Service
Start As/By
More info:
1. https://technet.microsoft.com/en-us/library/cc755249.aspx
2. http://www.howtogeek.com/school/using-windows-admin-tools-like-a-pro/lesson8/
UNDERSTANDING WINDOWS SERVICES
Parameter that
can be changed
SQL Servers start parameter eg:
-e [error log path] –g [memory to
reserve]
will set error log location and starting
memory to be used
UNDERSTANDING WINDOWS SERVICES
Control access to the services
Applicable for hardware
based services
UNDERSTANDING WINDOWS SERVICES
Determine the action if the services failed
If three consecutives
startup failed, the services
can trigger to run a program
such as send notifications,
log error, etc.
UNDERSTANDING WINDOWS SERVICES
The services/component that the
service dependent on
The component/services that has
dependencies to the service
UNDERSTANDING WINDOWS SERVICES
Getting response
via command
prompt
C:Usershaszeli>sc queryex MSSQL$SQLEXPRESS
SERVICE_NAME: MSSQL$SQLEXPRESS
TYPE : 10 WIN32_OWN_PROCESS
STATE : 1 STOPPED
WIN32_EXIT_CODE : 1077 (0x435)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
PID : 0
FLAGS :
C:Usershaszeli>
* You can also use net command to perform start/stop/pause/continue a service.
UNDERSTANDING WINDOWS SERVICES
• Not all services it shall runs
• Depends on the usage of the PC / Server
Configuring Services - that you should start / disabled
1. Windows 8.1 - http://www.blackviper.com/service-configurations/black-vipers-
windows-8-1-service-configurations/
2. Windows 7 - http://www.blackviper.com/service-configurations/black-vipers-
windows-7-service-pack-1-service-configurations/
3. Windows Vista - http://www.blackviper.com/service-configurations/black-vipers-
windows-vista-service-pack-2-service-configurations/
4. Windows XP - http://www.blackviper.com/service-configurations/black-vipers-
windows-xp-x86-32-bit-service-pack-3-service-configurations/
Others: http://www.blackviper.com/service-configurations/
UNDERSTANDING WINDOWS SERVICES
PROGRAMMING WINDOWS SERVICES
 Requirement:
 Visual Studio (IDE)
 .NET Framework
 Programming skill – VB.NET and C#
 List of possible function calls
https://msdn.microsoft.com/en-
us/library/System.ServiceProcess(v=vs.110).aspx
• Creating Windows Services
1. Create .NET Windows Services Project
https://msdn.microsoft.com/en-us/library/9k985bc9(v=vs.110).aspx
2. Write the program
https://msdn.microsoft.com/en-us/library/76477d2t(v=vs.110).aspx
3. Code the services
https://msdn.microsoft.com/en-us/library/zt39148a(v=vs.110).aspx
CREATING WINDOWS SERVICES
Creating services using Sc.exe command
https://support.microsoft.com/en-us/kb/251192
https://technet.microsoft.com/en-us/library/cc990289.aspx
Install and uninstall windows services program created using .NET
https://msdn.microsoft.com/en-us/library/sd8zc8ha(v=vs.110).aspx
http://stackoverflow.com/questions/8164859/install-a-windows-
service-using-a-windows-command-prompt
https://coderamblings.wordpress.com/2012/07/24/how-to-install-a-
windows-service-using-the-command-prompt/
WINDOWS SERVICES
VS
TASK SCHEDULER
Windows Services Task Scheduler
Running a permanent or continuous
operation/task
Running a program/apps once a while
(on frequency basis)
When a service is required to provide
data/operation when
needed/triggered
Running at its own pace. Process and
provide output but does not dependent
on other program/input
Complex program and/or application
that is very complex in coding and
processing
Simple operation or program that can
be easily managed
Triggered via events or programs Triggered via time
REFERENCES
1. https://msdn.microsoft.com/en-us/library/d56de412(v=vs.110).aspx
2. http://www.top-windows-tutorials.com/windows-services/
3. https://www.sophos.com/en-us/support/knowledgebase/11299.aspx
4. http://www.7tutorials.com/what-are-windows-services-what-they-do-how-
manage-them
5. https://technet.microsoft.com/en-us/library/cc736564(v=ws.10).aspx
6. https://msdn.microsoft.com/en-us/library/
7. http://www.howtogeek.com/school/using-windows-admin-tools-like-a-
pro/lesson8/
8. https://technet.microsoft.com/en-us/library/cc755249.aspx
9. http://windows.microsoft.com/en-us/windows-vista/manage-services-in-
windows-vista-from-windows-vista-inside-out
10.https://msdn.microsoft.com/en-us/ms190737.aspx
11.http://weblogs.asp.net/jongalloway//428303
12.http://dejanstojanovic.net/aspnet/2014/december/windows-scheduled-task-
vs-windows-service/
Thank you.

More Related Content

What's hot (20)

Development of Mobile Application -PPT
Development of Mobile Application -PPTDevelopment of Mobile Application -PPT
Development of Mobile Application -PPT
 
Windows Phone PPT
Windows Phone PPTWindows Phone PPT
Windows Phone PPT
 
ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1
 
Web services
Web servicesWeb services
Web services
 
Android Threading
Android ThreadingAndroid Threading
Android Threading
 
Android Architecture
Android ArchitectureAndroid Architecture
Android Architecture
 
Windows 11
Windows 11Windows 11
Windows 11
 
Windows operating system
Windows operating systemWindows operating system
Windows operating system
 
Introduction Node.js
Introduction Node.jsIntroduction Node.js
Introduction Node.js
 
Thunkable
ThunkableThunkable
Thunkable
 
Basic android-ppt
Basic android-pptBasic android-ppt
Basic android-ppt
 
.Net Core
.Net Core.Net Core
.Net Core
 
Ios development
Ios developmentIos development
Ios development
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell script
 
Android life cycle
Android life cycleAndroid life cycle
Android life cycle
 
Process of operating system
Process of operating systemProcess of operating system
Process of operating system
 
The Enterprise Case for Node.js
The Enterprise Case for Node.jsThe Enterprise Case for Node.js
The Enterprise Case for Node.js
 
Flutter
FlutterFlutter
Flutter
 
Modern operating system.......
Modern operating system.......Modern operating system.......
Modern operating system.......
 
Windows Xp Optimization
Windows Xp OptimizationWindows Xp Optimization
Windows Xp Optimization
 

Similar to Windows Services 101

Automating That "Other" OS
Automating That "Other" OSAutomating That "Other" OS
Automating That "Other" OSJulian Dunn
 
Windows Server Core
Windows Server CoreWindows Server Core
Windows Server CoreMark Wilson
 
Windows Server 2008 Management
Windows Server 2008 ManagementWindows Server 2008 Management
Windows Server 2008 ManagementHi-Techpoint
 
Windows Server 2008 Management
Windows Server 2008 ManagementWindows Server 2008 Management
Windows Server 2008 ManagementHi-Techpoint
 
Service management Dec 11
Service management Dec 11Service management Dec 11
Service management Dec 11Richard Conway
 
Service Management Dec 11
Service Management Dec 11Service Management Dec 11
Service Management Dec 11clarendonint
 
Andriod Lecture 8 A.pptx
Andriod Lecture 8 A.pptxAndriod Lecture 8 A.pptx
Andriod Lecture 8 A.pptxfaiz324545
 
Sa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administratorsSa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administratorsSharon James
 
Lesson 2 - Understanding Operating System Configurations
Lesson 2 - Understanding Operating System ConfigurationsLesson 2 - Understanding Operating System Configurations
Lesson 2 - Understanding Operating System ConfigurationsGene Carboni
 
Nt1310 Unit 5 Administrative Tools
Nt1310 Unit 5 Administrative ToolsNt1310 Unit 5 Administrative Tools
Nt1310 Unit 5 Administrative ToolsJenny Smith
 
Best MCSA - SQL SERVER 2012 Training Institute in Delhi
Best MCSA - SQL SERVER 2012 Training Institute in DelhiBest MCSA - SQL SERVER 2012 Training Institute in Delhi
Best MCSA - SQL SERVER 2012 Training Institute in DelhiInformation Technology
 
01 server manager spiffy
01 server manager spiffy01 server manager spiffy
01 server manager spiffySpiffy
 
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 20161049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016panagenda
 
Scoping for BMC Discovery (ADDM) Deployment by Traversys Limited
Scoping for BMC Discovery (ADDM) Deployment by Traversys LimitedScoping for BMC Discovery (ADDM) Deployment by Traversys Limited
Scoping for BMC Discovery (ADDM) Deployment by Traversys LimitedWes Moskal-Fitzpatrick
 
0505 Windows Server 2008 一日精華營 PartI
0505 Windows Server 2008 一日精華營 PartI0505 Windows Server 2008 一日精華營 PartI
0505 Windows Server 2008 一日精華營 PartITimothy Chen
 
0.Web Application Architecture.ppt
0.Web Application Architecture.ppt0.Web Application Architecture.ppt
0.Web Application Architecture.pptanoopkumarm
 
Tech Ed 2008 Israel Server Management 360
Tech Ed 2008 Israel   Server Management 360Tech Ed 2008 Israel   Server Management 360
Tech Ed 2008 Israel Server Management 360Amit Gatenyo
 
Apache Street Smarts Presentation (SANS 99)
Apache Street Smarts Presentation (SANS 99)Apache Street Smarts Presentation (SANS 99)
Apache Street Smarts Presentation (SANS 99)Michael Dobe, Ph.D.
 
Fredrik knalstad 10 ways to trigger orchestrator runbooks in the it jungle
Fredrik knalstad   10 ways to trigger orchestrator runbooks in the it jungleFredrik knalstad   10 ways to trigger orchestrator runbooks in the it jungle
Fredrik knalstad 10 ways to trigger orchestrator runbooks in the it junglePer Riis
 

Similar to Windows Services 101 (20)

Automating That "Other" OS
Automating That "Other" OSAutomating That "Other" OS
Automating That "Other" OS
 
Windows Server Core
Windows Server CoreWindows Server Core
Windows Server Core
 
Windows Server 2008 Management
Windows Server 2008 ManagementWindows Server 2008 Management
Windows Server 2008 Management
 
Windows Server 2008 Management
Windows Server 2008 ManagementWindows Server 2008 Management
Windows Server 2008 Management
 
Service management Dec 11
Service management Dec 11Service management Dec 11
Service management Dec 11
 
Service Management Dec 11
Service Management Dec 11Service Management Dec 11
Service Management Dec 11
 
Andriod Lecture 8 A.pptx
Andriod Lecture 8 A.pptxAndriod Lecture 8 A.pptx
Andriod Lecture 8 A.pptx
 
IBM Notes in the Cloud
IBM Notes in the CloudIBM Notes in the Cloud
IBM Notes in the Cloud
 
Sa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administratorsSa106 – practical solutions for connections administrators
Sa106 – practical solutions for connections administrators
 
Lesson 2 - Understanding Operating System Configurations
Lesson 2 - Understanding Operating System ConfigurationsLesson 2 - Understanding Operating System Configurations
Lesson 2 - Understanding Operating System Configurations
 
Nt1310 Unit 5 Administrative Tools
Nt1310 Unit 5 Administrative ToolsNt1310 Unit 5 Administrative Tools
Nt1310 Unit 5 Administrative Tools
 
Best MCSA - SQL SERVER 2012 Training Institute in Delhi
Best MCSA - SQL SERVER 2012 Training Institute in DelhiBest MCSA - SQL SERVER 2012 Training Institute in Delhi
Best MCSA - SQL SERVER 2012 Training Institute in Delhi
 
01 server manager spiffy
01 server manager spiffy01 server manager spiffy
01 server manager spiffy
 
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 20161049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
1049: Best and Worst Practices for Deploying IBM Connections - IBM Connect 2016
 
Scoping for BMC Discovery (ADDM) Deployment by Traversys Limited
Scoping for BMC Discovery (ADDM) Deployment by Traversys LimitedScoping for BMC Discovery (ADDM) Deployment by Traversys Limited
Scoping for BMC Discovery (ADDM) Deployment by Traversys Limited
 
0505 Windows Server 2008 一日精華營 PartI
0505 Windows Server 2008 一日精華營 PartI0505 Windows Server 2008 一日精華營 PartI
0505 Windows Server 2008 一日精華營 PartI
 
0.Web Application Architecture.ppt
0.Web Application Architecture.ppt0.Web Application Architecture.ppt
0.Web Application Architecture.ppt
 
Tech Ed 2008 Israel Server Management 360
Tech Ed 2008 Israel   Server Management 360Tech Ed 2008 Israel   Server Management 360
Tech Ed 2008 Israel Server Management 360
 
Apache Street Smarts Presentation (SANS 99)
Apache Street Smarts Presentation (SANS 99)Apache Street Smarts Presentation (SANS 99)
Apache Street Smarts Presentation (SANS 99)
 
Fredrik knalstad 10 ways to trigger orchestrator runbooks in the it jungle
Fredrik knalstad   10 ways to trigger orchestrator runbooks in the it jungleFredrik knalstad   10 ways to trigger orchestrator runbooks in the it jungle
Fredrik knalstad 10 ways to trigger orchestrator runbooks in the it jungle
 

More from Nurul Haszeli Ahmad

Ontology model for c overflow vulnerabilities attack
Ontology model for c overflow vulnerabilities attackOntology model for c overflow vulnerabilities attack
Ontology model for c overflow vulnerabilities attackNurul Haszeli Ahmad
 
Agile Project Management: Introduction to AGILE - The Basic 101
Agile Project Management: Introduction to AGILE - The Basic 101Agile Project Management: Introduction to AGILE - The Basic 101
Agile Project Management: Introduction to AGILE - The Basic 101Nurul Haszeli Ahmad
 
A SOURCE CODE PERSPECTIVE C OVERFLOW VULNERABILITIES EXPLOIT TAXONOMY BASED...
A SOURCE CODE PERSPECTIVE C OVERFLOW VULNERABILITIES EXPLOIT TAXONOMY BASED...A SOURCE CODE PERSPECTIVE C OVERFLOW VULNERABILITIES EXPLOIT TAXONOMY BASED...
A SOURCE CODE PERSPECTIVE C OVERFLOW VULNERABILITIES EXPLOIT TAXONOMY BASED...Nurul Haszeli Ahmad
 
C Overflows Vulnerabilities Exploit Taxonomy And Evaluation on Static Analysi...
C Overflows Vulnerabilities Exploit Taxonomy And Evaluation on Static Analysi...C Overflows Vulnerabilities Exploit Taxonomy And Evaluation on Static Analysi...
C Overflows Vulnerabilities Exploit Taxonomy And Evaluation on Static Analysi...Nurul Haszeli Ahmad
 
VULNERABILITIES AND EXPLOITATION IN COMPUTER SYSTEM – PAST, PRESENT, AND FUTURE
VULNERABILITIES AND EXPLOITATION IN COMPUTER SYSTEM – PAST, PRESENT, AND FUTUREVULNERABILITIES AND EXPLOITATION IN COMPUTER SYSTEM – PAST, PRESENT, AND FUTURE
VULNERABILITIES AND EXPLOITATION IN COMPUTER SYSTEM – PAST, PRESENT, AND FUTURENurul Haszeli Ahmad
 
Understanding Vulnerability by Refining Taxonomy
Understanding Vulnerability by Refining TaxonomyUnderstanding Vulnerability by Refining Taxonomy
Understanding Vulnerability by Refining TaxonomyNurul Haszeli Ahmad
 

More from Nurul Haszeli Ahmad (10)

Ontology model for c overflow vulnerabilities attack
Ontology model for c overflow vulnerabilities attackOntology model for c overflow vulnerabilities attack
Ontology model for c overflow vulnerabilities attack
 
Agile Project Management: Introduction to AGILE - The Basic 101
Agile Project Management: Introduction to AGILE - The Basic 101Agile Project Management: Introduction to AGILE - The Basic 101
Agile Project Management: Introduction to AGILE - The Basic 101
 
A SOURCE CODE PERSPECTIVE C OVERFLOW VULNERABILITIES EXPLOIT TAXONOMY BASED...
A SOURCE CODE PERSPECTIVE C OVERFLOW VULNERABILITIES EXPLOIT TAXONOMY BASED...A SOURCE CODE PERSPECTIVE C OVERFLOW VULNERABILITIES EXPLOIT TAXONOMY BASED...
A SOURCE CODE PERSPECTIVE C OVERFLOW VULNERABILITIES EXPLOIT TAXONOMY BASED...
 
C Overflows Vulnerabilities Exploit Taxonomy And Evaluation on Static Analysi...
C Overflows Vulnerabilities Exploit Taxonomy And Evaluation on Static Analysi...C Overflows Vulnerabilities Exploit Taxonomy And Evaluation on Static Analysi...
C Overflows Vulnerabilities Exploit Taxonomy And Evaluation on Static Analysi...
 
VULNERABILITIES AND EXPLOITATION IN COMPUTER SYSTEM – PAST, PRESENT, AND FUTURE
VULNERABILITIES AND EXPLOITATION IN COMPUTER SYSTEM – PAST, PRESENT, AND FUTUREVULNERABILITIES AND EXPLOITATION IN COMPUTER SYSTEM – PAST, PRESENT, AND FUTURE
VULNERABILITIES AND EXPLOITATION IN COMPUTER SYSTEM – PAST, PRESENT, AND FUTURE
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
Introduction To TRIZ
Introduction To TRIZIntroduction To TRIZ
Introduction To TRIZ
 
Understanding Vulnerability by Refining Taxonomy
Understanding Vulnerability by Refining TaxonomyUnderstanding Vulnerability by Refining Taxonomy
Understanding Vulnerability by Refining Taxonomy
 
Amazing quran by Dr Milller
Amazing quran by Dr MilllerAmazing quran by Dr Milller
Amazing quran by Dr Milller
 
2013 Security Report by Sophos
2013 Security Report by Sophos2013 Security Report by Sophos
2013 Security Report by Sophos
 

Recently uploaded

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 

Windows Services 101

  • 1. Windows Services 101 Nurul Haszeli Ahmad 01 June 2015
  • 2. HIGHLIGHTS Understanding Windows Services Programming Windows Services View Windows Services What is Windows Services? References Creating Windows Services Windows Services vs Task Scheduler
  • 3. WHAT IS WINDOWS SERVICES? Windows Services • A.K.A NT Services • long-running executable applications that run in their own Windows sessions • Runs on background (no UI) • Example services: DB Server, Anti-virus, SSH, HTTP, Printer Spooler, etc • Configurable: • Runs on startup (computer boot) • Delay run • Manual / Auto run • Start with parameter • Starts for specific username • An application can be programmable to run as a services via .NET (creating a Windows Service Application)
  • 4. VIEW WINDOWS SERVICES 1. Command Prompt 2. Task Manager 3. Services Manager 4. Computer Manager C:net start C:net start | more
  • 5. VIEW WINDOWS SERVICES 1. Command Prompt 2. Task Manager 3. Services Manager 4. Computer Manager
  • 6. VIEW WINDOWS SERVICES 1. Command Prompt 2. Task Manager 3. Services Manager 4. Computer Manager
  • 7. VIEW WINDOWS SERVICES 1. Command Prompt 2. Task Manager 3. Services Manager 4. Computer Manager
  • 8. UNDERSTANDING WINDOWS SERVICES Service s Name Current Status Start Mode Start As/By
  • 9. • Started • Pause • Pending • Stop Service Status • Automatic • Manual • Delay Start • Disabled Service Start Mode • Local System • Local Service • Network Service Start As/By More info: 1. https://technet.microsoft.com/en-us/library/cc755249.aspx 2. http://www.howtogeek.com/school/using-windows-admin-tools-like-a-pro/lesson8/ UNDERSTANDING WINDOWS SERVICES
  • 10. Parameter that can be changed SQL Servers start parameter eg: -e [error log path] –g [memory to reserve] will set error log location and starting memory to be used UNDERSTANDING WINDOWS SERVICES
  • 11. Control access to the services Applicable for hardware based services UNDERSTANDING WINDOWS SERVICES
  • 12. Determine the action if the services failed If three consecutives startup failed, the services can trigger to run a program such as send notifications, log error, etc. UNDERSTANDING WINDOWS SERVICES
  • 13. The services/component that the service dependent on The component/services that has dependencies to the service UNDERSTANDING WINDOWS SERVICES
  • 14. Getting response via command prompt C:Usershaszeli>sc queryex MSSQL$SQLEXPRESS SERVICE_NAME: MSSQL$SQLEXPRESS TYPE : 10 WIN32_OWN_PROCESS STATE : 1 STOPPED WIN32_EXIT_CODE : 1077 (0x435) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0 PID : 0 FLAGS : C:Usershaszeli> * You can also use net command to perform start/stop/pause/continue a service. UNDERSTANDING WINDOWS SERVICES
  • 15. • Not all services it shall runs • Depends on the usage of the PC / Server Configuring Services - that you should start / disabled 1. Windows 8.1 - http://www.blackviper.com/service-configurations/black-vipers- windows-8-1-service-configurations/ 2. Windows 7 - http://www.blackviper.com/service-configurations/black-vipers- windows-7-service-pack-1-service-configurations/ 3. Windows Vista - http://www.blackviper.com/service-configurations/black-vipers- windows-vista-service-pack-2-service-configurations/ 4. Windows XP - http://www.blackviper.com/service-configurations/black-vipers- windows-xp-x86-32-bit-service-pack-3-service-configurations/ Others: http://www.blackviper.com/service-configurations/ UNDERSTANDING WINDOWS SERVICES
  • 16. PROGRAMMING WINDOWS SERVICES  Requirement:  Visual Studio (IDE)  .NET Framework  Programming skill – VB.NET and C#  List of possible function calls https://msdn.microsoft.com/en- us/library/System.ServiceProcess(v=vs.110).aspx • Creating Windows Services 1. Create .NET Windows Services Project https://msdn.microsoft.com/en-us/library/9k985bc9(v=vs.110).aspx 2. Write the program https://msdn.microsoft.com/en-us/library/76477d2t(v=vs.110).aspx 3. Code the services https://msdn.microsoft.com/en-us/library/zt39148a(v=vs.110).aspx
  • 17. CREATING WINDOWS SERVICES Creating services using Sc.exe command https://support.microsoft.com/en-us/kb/251192 https://technet.microsoft.com/en-us/library/cc990289.aspx Install and uninstall windows services program created using .NET https://msdn.microsoft.com/en-us/library/sd8zc8ha(v=vs.110).aspx http://stackoverflow.com/questions/8164859/install-a-windows- service-using-a-windows-command-prompt https://coderamblings.wordpress.com/2012/07/24/how-to-install-a- windows-service-using-the-command-prompt/
  • 18. WINDOWS SERVICES VS TASK SCHEDULER Windows Services Task Scheduler Running a permanent or continuous operation/task Running a program/apps once a while (on frequency basis) When a service is required to provide data/operation when needed/triggered Running at its own pace. Process and provide output but does not dependent on other program/input Complex program and/or application that is very complex in coding and processing Simple operation or program that can be easily managed Triggered via events or programs Triggered via time
  • 19. REFERENCES 1. https://msdn.microsoft.com/en-us/library/d56de412(v=vs.110).aspx 2. http://www.top-windows-tutorials.com/windows-services/ 3. https://www.sophos.com/en-us/support/knowledgebase/11299.aspx 4. http://www.7tutorials.com/what-are-windows-services-what-they-do-how- manage-them 5. https://technet.microsoft.com/en-us/library/cc736564(v=ws.10).aspx 6. https://msdn.microsoft.com/en-us/library/ 7. http://www.howtogeek.com/school/using-windows-admin-tools-like-a- pro/lesson8/ 8. https://technet.microsoft.com/en-us/library/cc755249.aspx 9. http://windows.microsoft.com/en-us/windows-vista/manage-services-in- windows-vista-from-windows-vista-inside-out 10.https://msdn.microsoft.com/en-us/ms190737.aspx 11.http://weblogs.asp.net/jongalloway//428303 12.http://dejanstojanovic.net/aspnet/2014/december/windows-scheduled-task- vs-windows-service/

Editor's Notes

  1. Process Explorer – Much more better – Shows services and its dependencies
  2. Process Explorer – Much more better – Shows services and its dependencies
  3. Process Explorer – Much more better – Shows services and its dependencies
  4. Process Explorer – Much more better – Shows services and its dependencies
  5. Local System – based on user profile Local Service – Control by user with administrator right / Created by Application/OS Network Service – Control by IT Administrator
  6. Using system utility: sc command. Another way is to use net command Eg: C:\Users\haszeli>net start MSSQL$SQLEXPRESS The SQL Server (SQLEXPRESS) service is starting.... The SQL Server (SQLEXPRESS) service was started successfully. C:\Users\haszeli>net stop MSSQL$SQLEXPRESS The SQL Server (SQLEXPRESS) service is stopping. The SQL Server (SQLEXPRESS) service was stopped successfully.
  7. Command-line Syntax key - https://technet.microsoft.com/en-us/library/cc771080.aspx