Questions tagged [windows-services]

Windows services are background service processes run by the Service Control Manager on Windows NT based operating systems, similar to daemons or UNIX services.

Windows services, also referred to as NT services, are background service processes run by the Service Control Manager based on the service settings and optionally restarted as needed. Windows services are also capable of being launched on demand, based on other service dependencies.

See also Introduction to Windows Service Applications

8974 questions
3
votes
4 answers

Windows Time service won't synchronize

I'm posting my problem here because even with all the post I could read to fix this, the w32tm still give me the same error message when trying to synchronize the computer time with a local NTP server (which is a PLC). Here's a quick explanation of…
LL-PxC
  • 31
  • 1
  • 2
3
votes
2 answers

desktop notifications in service

I wrote a python program that get messages from server and invokes windows notification. I turned the program into a one file executable using pyinstaller, the program works perfect when running as an app. when I turned it into a service on windows…
IlayG01
  • 80
  • 1
  • 7
3
votes
2 answers

Windows Service: Session Unlock Event with Fast User Switching and Terminal Services Stopped and Disabled

I am writing a C# .NET 3.5 Windows Service that needs to perform some actions whenever a user logon or unlock event occurs. I have tried registering the service by adding my event handler to Microsoft.Win32.SystemEvents.SessionSwitch: using…
3
votes
5 answers

MSI Uninstall issue: Error 1001 -> The saved State dictionary contains inconsistent data and might have been corrupted

I need to create a few Windows Services and obviously I would like to package them in a nice installer. Since I was unfamiliar with Service creation/installation I basically used code from the following example: Advanced Service Installation I did…
Kris
  • 2,100
  • 5
  • 31
  • 50
3
votes
2 answers

Max TCP Connections to a machine

I am creating a Windows Service in .NET to which N number of client can connect. The service starts a TCP listener and accepts the client connections. The problem I am facing is that I can only open 10 connections to this service. The…
A9S6
  • 6,575
  • 10
  • 50
  • 82
3
votes
2 answers

Execute psexec using service in C#

I need execute a program in the remote computer, so I created a service in order to call psexec (it's crucial using the service). However, this service cannot call psexec. Following the code: String cmd = "", arguments = ""; …
Jannibelli
  • 331
  • 1
  • 5
  • 10
3
votes
3 answers

How to configure Puppeteer to write to a specific temp folder when using PM2 with a local windows service user?

We are running a Node.js backend on a Windows Server with PM2. For PDF generation we use Puppeteer. Chromium started with pm2 as Local Service user uses wrong temp folder Current installation: PM2 is running as Service installed by using…
Simon Thiel
  • 2,888
  • 6
  • 24
  • 46
3
votes
2 answers

How do I add SignalR to a .NET Core Windows Service?

I can find tutorials to add it to MVC, and even from 2014, an article explaining how to add it to .NET 4.7 windows service. However with a .NET Core 3.1 windows service, I just cannot figure out how to do it. Most tutorials seem to revolve around a…
NibblyPig
  • 51,118
  • 72
  • 200
  • 356
3
votes
1 answer

How to use .NET to coordinate/communicate between MSCS cluster nodes

I have to a develop a .NET Windows Service application that should run on an Active/Active cluster. A Windows Service instance (one instance among many in cluster nodes) should listen to an IBM Websphere MQ and distribute the queue items to all…
Ambal
  • 215
  • 2
  • 10
3
votes
2 answers

no mapping between account and security windows service

During the setup of windows service I get the error: error 1001 no mapping between account and security windows service We use a custom user account for the server. (administrator account)
Niki
  • 1,173
  • 1
  • 14
  • 19
3
votes
3 answers

installing a windows service

I have created a Windows Service in ASP.NET 4.0 and I am using the following command to install the service after starting a command prompt as administrator: C:\Windows\system32>sc create EnviroTracker1 binpath= "D:\Freelance Work\SuperExpert\git…
DotnetSparrow
  • 27,428
  • 62
  • 183
  • 316
3
votes
2 answers

Wait for Service to Start/Stop

I am using the service controller in C++ to manage a windows service. I can use the StartService( ) and ControlService( ) functions to start and stop the service. However, is there a standard way to wait for the service to actually start and stop? I…
Nick
  • 25,026
  • 7
  • 51
  • 83
3
votes
2 answers

Windows Service not completely starting

I made this small windows service in c# and I believe I may have done something wrong with my ThreadPool code that prevents my Windows Service from completely starting. If you must know, the windows service seems to be running perfectly only that…
Martin Ongtangco
  • 22,657
  • 16
  • 58
  • 84
3
votes
1 answer

Downloading SFTP files through WinSCP on a Windows Service freezes

I'm trying to build a service that downloads some log files using SFTP and imports them to the database. Because Delphi doesn't come with SFTP components, I have created a BAT file to download the logs using WinSCP DownloadLogs.bat: WinSCP.com <…
Marc Guillot
  • 6,090
  • 1
  • 15
  • 42
3
votes
1 answer

How to stop a Win32 service started with Win32::Daemon?

I am able to start a Win32 service successfully on Windows 10 (Strawberry perl version 5.30.1) using the follwing script: package Win32::XYZService; use feature qw(say); use strict; use warnings; use File::Spec; use Win32; use Win32::Daemon; { …
Håkon Hægland
  • 39,012
  • 21
  • 81
  • 174