Questions tagged [windows-service]

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
6k views

How can I add a certificate to a Windows service's certificate store from the command line?

I want to add a certificate to the certificate store belonging to a Windows service, from the command line. So far, the only thing I've found is: certutil -service -store ADAM_Instance-Name\My When ...
3 votes
1 answer
10k views

'net view' generates error "The service has not been started"

I have a problem in Symantec Endpoint Protection Manager where by the computer browser to do a remote push install has randomly stopped working showing the error message Network Provider: Microsoft ...
0 votes
1 answer
5k views

Can't stop Base Filtering Engine service on Windows Server 2016 Essentials

According to Quickbooks Help, every time we restart our server (Server 2016 Essentials) we need to restart the Base Filtering Engine service. This procedure has always worked in the past for us. ...
1 vote
1 answer
188 views

How to install ActiveMQ Artemis as a Windows service?

The title is a bit missleading since I know how to install artemis as a windows service, according to the documentation one just has to run artemis-service.exe install This does not work for me. I ...
0 votes
1 answer
260 views

How to create a GPO to audit start/stop of a service not running on the DC?

I'm trying to enable auditing of service start/stop events for a few specific services on a group of domain computers, and to make this change using Group Policy. I've seen this answer, however when I ...
16 votes
9 answers
31k views

nginx stop/reload on windows failed for Access is denied

I am running nginx on Windows Server 2008 R2 (x64) as a windows service. I am using Windows Service Wrapper for that. (Actually, I have followed this tutorial: http://mercurial.selenic.com/wiki/...
0 votes
1 answer
212 views

Do Windows Services continue running when their Active Directory account gets disabled?

There was an incident this week where one of our SQL Server instances was unexpectedly offline. I found the Windows Services that run the instance stopped and was unable to start them again due to the ...
0 votes
1 answer
102 views

Limit Managed Service Account to only run certain service

I've started learning about Managed Service Accounts in Windows. As I understand it, such accounts make password management easier and the accounts can be limited to be used on certain machines. You ...
2 votes
1 answer
3k views

Windows Service Options change logged?

Are changes to a Windows service logged? Specifically, I suspect that the Recovery options were changed for a service and I'm trying to see if that was indeed the situation. I've tweaked various ...
0 votes
0 answers
421 views

Multiple per-user services on Windows Server 2022?

We just upgraded a couple of servers to Windows Server 2022. I am noticing in the Services Control Panel, a number of services which present multiple instances, presumably one instance for every user ...
3 votes
2 answers
4k views

Windows Service "System error 5 has occurred. starting service"

I have a Windows 2012 R2 server which has been happily running a windows service for roughly 3-4 months with various build revisions going into the software. The server configuration hasn't changed ...
0 votes
1 answer
342 views

How do I prevent a Windows service from setting its own startup type to automatic?

I have a self-starting service, but I want to start it manually instead. However, as long as the service is running, it continues to monitor its startup type status, and as soon as I change it to ...
0 votes
1 answer
1k views

Windows Network Setup Service (NetSetupSvc) starts and stops every few minutes, flooding System log

NetSetupSvc is a helper service for installing network drivers and managing low-level network settings. It is trigger-started via RPC and automatically stops after 3 seconds. During normal operation ...
5 votes
2 answers
19k views

Using "sc" command to control services with whitespace in name

I need to stop service on remote machine. The problem is that service name contains whitespaces, and I get a message, that such service does not exist. sc \\machine stop "service name" How can I fix ...
19 votes
6 answers
94k views

How can I get the path to a Windows service executable WITHOUT using sc qc?

I need to query a windows service for the path to it's executable via the command prompt. I think the way I would do this is:sc qc myServiceName, but when I do that, I get the following error: [SC]...
0 votes
0 answers
47 views

Any possible way to receive an alert of Windows Server being "unresponsive"?

We currently use ServiceNow to have many alerts like ping, 100% CPU/RAM utilization, disk space being almost full, etc. but we are investigating if we can receive an alert when the OS is "...
6 votes
2 answers
11k views

How do I make one service dependent on another in Windows 7?

If I view properties for a service, I can see the "Dependencies" tab, but I can't assign other services to this tab. I have two services that start on startup, a server and a database. The server ...
3 votes
1 answer
4k views

Windows Service with dependency cannot start automatically

I have Service B that is dependent on Service A. Both services are set for automatic(delayed) start upon boot and both services have set Recovery Action of restart in case of first, second and ...
0 votes
1 answer
631 views

Can not modify Remore Procedure Call (RPC) service

I have an admin account on my windows, and I used to disable the RPC service before, but recently I can't even modify that. It is permanently disabled, and I can't change its properties. Does anyone ...
39 votes
3 answers
98k views

How do I increase windows service startup timeout

I have migrated software to a very slow sever. Some software services refuses to startup because of system timeout. How do I increase timeout from default 30 sec.(?) to several minutes? Thank you in ...
1 vote
1 answer
175 views

Why is Windows Restarting my Service which I've Manually Stopped?

We have three servers - Windows 2012 R2 - in Azure, running a variety of our own custom developed services. These services are configured to start automatically, so naturally, on startup or after a ...
2 votes
1 answer
5k views

Windows service accounts without password set

In Unix and Linux based system you usually run services in context of service accounts that have no password set and cannot be logged on. As far as I have understood, the processes are spawned from a ...
-1 votes
1 answer
9k views

Access Denied when accessing Service controller from application

I have a web application written in c# mvc which is trying to check the status of windows service whether it is stopped or started. I have written the code but the issue is the code works fine on my ...
15 votes
4 answers
157k views

Show status of a Windows service from the command prompt

Is there any Windows command which will show the status of a single service? For example, I want to know whether "IIS admin service" is running or not. If it is running the command ouput should be "...
5 votes
2 answers
1k views

Windows Service Limit Crashes Services on Startup

We have developed a custom Windows service in C# as part of a large Enterprise application. Our QA department tests multiple versions of this service. The QA lab has several (over 20) copies of this ...
2 votes
1 answer
3k views

How to enable logging of Event ID 7042 (service stop reason)?

Event with ID 7042 gets logged in the Event Log when two particular services (custom apps) stop on Windows Server 2022. The problem: one Windows Server is not logging those events. Is there an option ...
70 votes
9 answers
222k views

How can I automatically restart a Windows service if it crashes?

I have a Windows service that exits unexpectedly every few days. Is there a simple way to monitor it to make sure it gets restarted quickly if it crashes?
3 votes
7 answers
34k views

How to prevent Hamachi service stop when Remote Desktop disconnects on Windows XP?

I have a Windows XP SP2 machine with Hamachi service running. Usually I connect to it using Remote Desktop, and when I disconnect I can't connect to it again because the Hamachi VPN is down. How to ...
10 votes
2 answers
38k views

Windows Service can't access network share

I have a Windows service running on my local machine. It's configured to run under NT AUTHORITY\NETWORK SERVICE. The program access a network shared drive on a computer in the same subnet. That shared ...
1 vote
1 answer
3k views

Start/stop windows service as user from command line

How can I start a service from the command line e.g. net start "sql server (sqlexpress2016)" without running with elevated privileges? The short answer is "you can't". But how come then Services ...
0 votes
1 answer
2k views

What can cause a service to switch from 'automatic' startup to to 'manual' startup?

We had some problem with the Windows Time Service a while ago. It was set to 'manual' startup and was not started. We set this to 'automatic' startup on every server and configured it properly to sync ...
0 votes
1 answer
2k views

MariaDB won't start as a service on Windows Server 2016 - works fine from cmd prompt

Fresh server running Windows Server 2016 Standard along with a fresh copy of MariaDB 10.3.14. MariaDB starts and runs perfectly when started from the command line using: mysqld.exe "--defaults-file=D:...
1 vote
1 answer
2k views

Supervisord as Windows Service on Cygwin

I am attempting to run Celery as a Windows Service using Supervisord. I followed the configuration laid out on the Celery site and here. I have set up a virtual environment to run supervisord through ...
0 votes
2 answers
3k views

How can I manage services on a remote computer with the Services MMC snap-in in Windows 8.1 in a workgroup

I'm trying to manage services of a remote computer in a workgroup via the Services MMC snap-in. Both computers are running Windows 8.1 Pro and are in a private (private as in Windows) network. RDP ...
66 votes
5 answers
196k views

How do I grant start/stop/restart permissions on a service to an arbitrary user or group on a non-domain-member server?

We have a suite of Windows Services running on our servers which perform a bunch of automated tasks independently of one another, with the exception of one service which looks after the other services....
1 vote
1 answer
3k views

Stunnel as Windows service doesn't "start" on reboot

Running stunnel 5.03 on Windows 2008 R2. Everything is installed and working fine. I can even start/stop the service no problem... When I reboot my server stunnel service shows as started but ...
0 votes
2 answers
3k views

Using a specific network adapter for a service

On a Synology NAS this is called: Service-interface binding Is there something to specify the network adapter used by a certain service? I don't wan't all applications running on that adapter. I only ...
0 votes
1 answer
2k views

Azure Monitor Alert for Windows Services

Is it possible to add an Azure Monitor Alert for Windows Services running on Cloud Services? We have a web app running on Cloud Services depending on a service we installed on the instance VM, we ...
27 votes
3 answers
15k views

How can I programmatically cause a new Windows user's profile to be created?

I'm creating a (local) user for a Windows service to run as. I've got good reasons for not wanting to use NETWORK SERVICE, LOCAL SERVICE, or LOCAL SYSTEM. I create the user via net user foobar "...
1 vote
1 answer
2k views

Windows: create a service for running a executable jar with out any external libraries

I have spring boot executable jar file which can run into any command prompt by calling java -jar filename.jar. I want to create a service with out downloading any external libraries for the above ...
2 votes
3 answers
2k views

How to prevent user from logon of an account used for impersonation only?

Currently I have a windows service written in C# (running as LocalSystem) which creates a user account, needed for impersonation, by using the DirectoryEntry to add the user/password and associated ...
3 votes
3 answers
9k views

Automatic Windows Service Not Starting

I have a services running in Windows Local Services which is set to Automatic Startup. Every so often this service doesn't start after a reboot and there are no errors in the event log. The service ...
1 vote
4 answers
2k views

Service with startup type automatic doesn't start after reboot

We have a custom service that runs on Windows Server 2008 R2 64 bit. It has startup type of "Automatic". However, after a reboot, the service does not start automatically. It does start if we manually ...
1 vote
0 answers
360 views

Implement /usr/sbin/apachectl start|stop|restart as a Windows Service

We are running Apache Web Server 2.4 installed as a Cygwin package, on Windows Server 2018. The Apache service manually started after each reboot by running: /usr/sbin/apachectl start From the Cygwin ...
0 votes
0 answers
216 views

Java Generic Service in Windows Failover Cluster

I created a JAVA-backend in spring boot and configured it as Windows Service. The purpose of the service is to serve REST API. For instance, to list users, we need to call: localhost:8090/users I want ...
7 votes
2 answers
37k views

Can I safely disable WinHttpAutoProxySvc if I don't have a proxy?

I noticed that this service starts and stops regularly seeking for proxies, but in the service description says that it implements the HTTP client stack. Is it used for something more than proxy ...
7 votes
3 answers
53k views

Disable windows file shares without losing share config

Background We're currently upgrading an old app from running on Windows Server 2003 to running it on Windows Server 2012. Users and other systems communicate with this system via HTTP (i.e. users ...
1 vote
2 answers
1k views

how to stop, start and delete a windows service in cmd with a reference to the service name

how to stop/start a windows service in cmd with just a fragment of the service name. Example: NET STOP *part_of_name_of_service* NET START *part_of_name_of_service* For example. mysql has many ...
0 votes
1 answer
99 views

How to start a service without the need to change password

We have developed a backup software for a SQL Server(2019) that runs on a Windows Server 2019 for a customer. The app (.net Windows Forms) has an interface to configure the backups (e.g. select day's ...
7 votes
10 answers
37k views

How can I restart a windows service remotely using a script?

I have a Python web application running in a CherryPy server, which is running as a windows service. I have a batch file to deploy this application, but I'm still having to remote desktop in to the ...

1
2 3 4 5
9