Windows Services
Welcome to Windows Services section of C# Corner. In this section, you will find various Windows Services related source code samples, articles, tutorials, and tips.


  • Records System Session Events Triggered Time Like Shutdown, Lock/Unlock, LogOn/LogOff Using Windo...

    This blog explains how to record system events such as Windows Lock/Unlock, LogOn/LogOff, Shutdown in C#.
  • Install Windows Service Without Visual Studio Command Prompt Without Setup

    Here are the steps required to install a Windows Service from command prompt without building a setup in Visual Studio.
  • How to Install or Uninstall a Windows Service

    This article demonstrates how to Install/Uninstall a Windows Service written in C# .NET.
  • Recognizing DLL Hijacking On Windows

    In this article, you will learn about recognizing DLL hijacking on Windows.
  • Develop and Install a Windows Service in C#

    This article explains a step-by-step process of developing and installing a Windows Service to do a scheduled job based on a time interval.
  • Windows Function - FIRST_VALUE And LAST_VALUE

    I hope you all are doing great. This article is next in series of Windows Function - Part 1 (LAG and LEAD). This article focuses on other Windows Functions, i.e., First_Value and Last_Value.
  • Creating a Windows Service in C#

    Windows Services is a new name for NT Services in .NET. This tutorial steps you through creating a Windows Service and how to install and start it.
  • Hosting WCF Service Within Windows Service

    Self-Hosting can be achieved by using various types of Windows applications. Such applications can be: Console Applications, Windows Applications(Windows Forms, WPF), Windows services
  • New Windows Desktop Program For Desktop Application Analytics

    Windows had introduced a new desktop program for the analytics of computer applications offering developers a one-stop solution for their desktop application analytics.
  • If The Boot Configuration Data For Your PC Is Missing Or Contains Errors

    The Boot Configuration Data (BCD) is a firmware-independent database for boot-time configuration data. It is used as new Windows Boot Manager. It replaces the "boot.ini" file that was used i
  • Get Windows Service Name From App.Config In Installation

    This blog describes how to fetch service name App.config at the time of installation.
  • Start/Stop Remote Windows Service From Client Application

    Start Stop Remote Windows Service From Client Application.
  • Windows Server 2012 - Extend Volume Option Is Disabled In Disk Management

    In this article, I will show How to extend the Operating System drive in Windows Server 2012.
  • Active Directory Domain Services In Windows Server 2016

    In this article, you will be familiarized with Active Directory Domain Services in Windows Server 2016.
  • How To Reset Or Remove Windows Activation/ Remove License Key Using Command

    In this blog, you will learn how to reset or remove Windows activation/ remove license key, using command.
  • Run The Windows Service Using Command Prompt

    Mostly, we write the code for Windows Service very simply. At the time of hosting the Windows Service, many struggle in the first Service hosting. I think this following blog will be useful for those
  • Embed A Web Server In A Windows Service

    Using NancyFX to provide a web-interface to a Windows Service.
  • Hey Cortana!! Let’s Understand you Completely

    In this article you will understand Cortana completely.
  • Creating Windows Service In .NET with Topshelf

    This article is to help us to create Windows service in .NET with Topshelf and how to install it.
  • Create Windows Service To Send Email Daily Using ASP.NET And C#

    This article explains how to create Windows Service in ASP.NET with C# to send mail on daily basis.
  • Topshelf OSS Library

    This article shows how to make Windows Services easier using an ultimate .NET OSS library that provides control of nearly everything related to a Windows Service. The library is known as “TOPSHELF”.
  • Console Application Using Windows Scheduler

    In this article you will learn about console applications using Windows Scheduler in Windows services.
  • Introduction to WebAssembly

    In this blog you will learn about WebAssembly.
  • Debugging a Windows Service

    This article explains the process of debugging a Windows Service.
  • Create Simple Windows Service And Setup Project With Installation

    In this article we will see how to create a simple Windows Service and Setup Project with installation.
  • View More