1. Install the Windows Service Step 1: Open PowerShell in Administrator Mode Step 2: Install the Service Run the following command in PowerShell: ✔ Service Name: HrAlertScheduler ✔ Service will be set to Automatic startup. Command:-- New-Service -Name "HrAlertScheduler" ` -BinaryPathName "D:\SalaryCalculationService\HrAlertScheduler\HrAlertScheduler.exe" ` -DisplayName "HR Alert Scheduler" ` -Description "HR Salary Calculation & Alert Background Service" ` -StartupType Automatic Step 3: Start the Service After installation, start the service: Command:-- Start-Service HrAlertScheduler 🛑 2. Stop and Uninstall the Service Stop the Service Command:- Stop-Service HrAlertScheduler -Force -ErrorAction SilentlyContinue Uninstall (Delete) the Service Command:- sc.exe delete HrAlertScheduler Once deleted, the service will no longer appear in services.msc.